ack/lang/cem/libcc.ansi/stdio/fputs.c

19 lines
248 B
C
Raw Normal View History

1989-05-30 13:34:25 +00:00
/*
* 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;
}