summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-09-01 14:01:52 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-09-01 14:01:52 +0000
commita914951d6888e812092b5c5fbb58baf711cd2db1 (patch)
treefde0a8a73759025f9d9cccea12bfbe057f4a2aea /lib
parent6ff604a73ac868eea3ce6cf8941dcf0447935b1d (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/ungetc.35
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/stdio/ungetc.3 b/lib/libc/stdio/ungetc.3
index 83483be04ffb..054213c0d234 100644
--- a/lib/libc/stdio/ungetc.3
+++ b/lib/libc/stdio/ungetc.3
@@ -73,6 +73,11 @@ an effectively infinite amount of pushback is allowed.
.Pp
If a character is successfully pushed-back,
the end-of-file indicator for the stream is cleared.
+The file-position indicator is decremented
+by each successful call to
+.Fn ungetc ;
+if its value was 0 before a call, its value is unspecified after
+the call.
.Sh RETURN VALUES
The
.Fn ungetc