diff options
Diffstat (limited to 'src/stdio/fgetc.c')
| -rw-r--r-- | src/stdio/fgetc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index 06e4c064..2bae1eb7 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -12,9 +12,12 @@ int fgetc(FILE *stream) { SIGNAL_SAFE(0); + ASSERT_STREAM(stream, ORIENT_BYTE, OP_INPUT); + flockfile(stream); char c = getc_unlocked(stream); funlockfile(stream); + /* RETURN_SUCCESS(the next character); RETURN_FAILURE(CONSTANT(EOF)); |
