libc: Add return value to ungetc()
This commit is contained in:
parent
d75de5f423
commit
d82238b485
@ -176,8 +176,12 @@ extern "C"
|
|||||||
{
|
{
|
||||||
stream->f_bufoff--;
|
stream->f_bufoff--;
|
||||||
stream->f_buf[stream->f_bufoff] = (char)c;
|
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)
|
int ferror(FILE* stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user