ack/lang/cem/libcc.ansi/sys/stdio/fputs.c
2018-06-23 18:54:40 +02:00

24 lines
267 B
C

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