meta: move photon/libc to root
This commit is contained in:
12
libc/stdio/ungetc.c
Normal file
12
libc/stdio/ungetc.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include <__fio.h>
|
||||
|
||||
int ungetc(int c, FILE *fp)
|
||||
{
|
||||
if (c == EOF) {
|
||||
return EOF;
|
||||
}
|
||||
|
||||
int res = __fio_ungetc(fp, c);
|
||||
return res == -1 ? EOF : c;
|
||||
}
|
||||
Reference in New Issue
Block a user