gigatron/rom/Archive/lcc/Libs/stdio/fputs.c
2025-01-28 19:17:01 +03:00

13 lines
220 B
C

#include <stdio.h>
/*
* Return nonnegative integer on success and EOF on error
*/
int fputs(const char *s, FILE *stream)
{
for (; *s; s++)
if (putc(*s, stream) < 0)
return EOF;
return fflush(stream);
}