ack/lang/cem/libcc.ansi/stdio/fputs.c
1989-05-30 13:34:25 +00:00

19 lines
248 B
C

/*
* fputs - print a string
*/
/* $Header$ */
#include <stdio.h>
int
fputs(register const char *s, register FILE *stream)
{
register int retval = 0;
while (*s)
if (putc(*s++, stream) == EOF) return -1;
else retval++;
return retval;
}