meta: move photon/libc to root
This commit is contained in:
14
libc/stdio/fputs.c
Normal file
14
libc/stdio/fputs.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <__fio.h>
|
||||
|
||||
int fputs(const char *str, FILE *fp)
|
||||
{
|
||||
while (*str) {
|
||||
__fio_write(fp, str++, 1);
|
||||
if (__fio_error(fp)) {
|
||||
return EOF;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user