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