libc: Stub out ungetc()

This commit is contained in:
apio 2022-10-23 10:34:49 +02:00
parent f0eeaa25a3
commit c02f2e128d
2 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,8 @@ extern "C"
/* Retrieves a character from stream. */
int getc(FILE* stream);
int ungetc(int, FILE*); // Not implemented.
/* Retrieves a character from standard input. */
int getchar();

View File

@ -170,6 +170,11 @@ extern "C"
return fgetc(stdin);
}
int ungetc(int, FILE*)
{
NOT_IMPLEMENTED("ungetc");
}
int ferror(FILE* stream)
{
return stream->f_err;