summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/ungetc.35
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/stdio/ungetc.3 b/lib/libc/stdio/ungetc.3
index 83483be..6d657a8 100644
--- a/lib/libc/stdio/ungetc.3
+++ b/lib/libc/stdio/ungetc.3
@@ -83,7 +83,10 @@ if the operation fails.
If the value of the argument
.Fa c
character equals
-.Dv EOF ,
+.Dv EOF
+or current
+.Fa stream
+offset equals 0,
the operation will fail and the stream will remain unchanged.
.Sh SEE ALSO
.Xr fseek 3 ,
OpenPOWER on IntegriCloud