Files
photon/libc/stdio/fputs.c

15 lines
220 B
C
Raw Normal View History

2020-04-01 11:58:54 +01:00
#include <stdio.h>
#include <__fio.h>
int fputs(const char *str, FILE *fp)
{
while (*str) {
__fio_write(fp, str++, 1);
2020-04-01 12:04:25 +01:00
if (__fio_error(fp)) {
return EOF;
}
2020-04-01 11:58:54 +01:00
}
2020-04-01 12:04:25 +01:00
return 0;
2020-04-01 11:58:54 +01:00
}