ack/lang/cem/libcc.ansi/core/stdio/fputs.c
David Given 3131dc9915 Partially working port of stdio to CP/M. I'm not sure this will work; it's
getting way too complicated (stdio is horribly subtle). I think I need to
rethink things.
2019-06-15 22:22:01 +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