|
|
researchv10 Norman
/* Copyright AT&T Bell Laboratories, 1993 */
#include <stdio.h>
fputs(const char *s, FILE *iop)
{
unsigned char *e, *t;
for(;;) {
t = iop->_ptr;
e = t + iop->_cnt;
while(*s && t < e)
*t++ = *s++;
iop->_cnt -= t - iop->_ptr;
iop->_ptr = t;
if(*s == 0)
break;
if(putc(*s++, iop) == EOF)
return EOF;
}
return 0;
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.