Files
photon/libc/stdio/fputc.c

14 lines
184 B
C

#include <stdio.h>
#include <__fio.h>
int fputc(int c, FILE *fp)
{
char ch = c;
__fio_write(fp, &ch, 1);
if (__fio_error(fp)) {
return EOF;
}
return c;
}