Licensing Information

Open Source Used In Cisco DSP IP Cameras 420
while((c = *s++) && c != ':') {
if (c == '\\') {
/* Escaped character. */
c = *s++;
if (c >= '0' && c <= '9') {
/* Octal number. */
c -= '0';
i = 0;
while(*s >= '0' && *s <= '9' && ++i < 3) {
c = (c * 8) + (*s - '0');
s++;
}
} else {
/* \r or \n or whatever. */
for(sp = escapes; *sp; sp += 2)
if (c == *sp) {
c = *++sp;
break;
}
}
} else if (c == '^')
/* Hat notation. */
c = *s++ & 0x1f;
*r++ = c;
}
*r++ = 0;
/* Do we need to update bufp? */
if (bufp) *bufp = r;
return(ret);
}
/* Output string with padding - stolen from GNU termcap.c :) */
void tputs(const char *str, int nlines, int (*outfun)(int))
{
int padcount = 0;
int speed, spd;
/* Safety check. */
if (!str) return;
/* Try to get output speed. */
spd = ospeed;
#ifdef B38400
/* We can't usually trust the speed constants > 38400. */