libc: Add return value to ungetc()

This commit is contained in:
apio 2022-10-23 11:14:18 +02:00
parent d75de5f423
commit d82238b485

View File

@ -176,8 +176,12 @@ extern "C"
{
stream->f_bufoff--;
stream->f_buf[stream->f_bufoff] = (char)c;
return c;
}
else
{
return EOF; // FIXME: Handle this case properly.
}
else { NOT_IMPLEMENTED("ungetc with buffer that has not been read"); }
}
int ferror(FILE* stream)