Licensing Information
Open Source Used In Cisco DSP IP Cameras 421
if (ospeed > B38400) spd = B38400;
#endif
if (spd == 0)
speed = tputs_baud_rate;
else
speed = speeds[spd];
/* Read padding information. */
while (*str >= '0' && *str <= '9') {
padcount += *str++ - '0';
padcount *= 10;
}
if (*str == '.') {
str++;
padcount += *str++ - '0';
}
if (*str == '*') {
str++;
padcount *= nlines;
}
/* Now output the capability string. */
while (*str)
(*outfun) (*str++);
/* Do we need padding? */
if (padcount == 0) return;
/* padcount is now in units of tenths of msec. */
padcount *= speeds[ospeed];
padcount += 500;
padcount /= 1000;
if (speeds[ospeed] < 0)
padcount = -padcount;
else {
padcount += 50;
padcount /= 100;
}
/* And output the pad character. */
while (padcount-- > 0)
(*outfun) (PC);
}
#ifdef TEST
/*ARGSUSED*/
int main(int argc, char **argv)