meta: move photon/libc to root
This commit is contained in:
13
libc/stdio/fputc.c
Normal file
13
libc/stdio/fputc.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user