summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/ungetc.3
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-09-01 14:01:52 +0000
committerache <ache@FreeBSD.org>2001-09-01 14:01:52 +0000
commit162eb9fa4efd5e7804938d0afb33828aa58d2484 (patch)
treefde0a8a73759025f9d9cccea12bfbe057f4a2aea /lib/libc/stdio/ungetc.3
parent87850137765d49a874252b2d1a70bc66c472067f (diff)
downloadFreeBSD-src-162eb9fa4efd5e7804938d0afb33828aa58d2484.zip
FreeBSD-src-162eb9fa4efd5e7804938d0afb33828aa58d2484.tar.gz
Describe file-position behaviour from POSIX
Diffstat (limited to 'lib/libc/stdio/ungetc.3')
-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 83483be..054213c 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
OpenPOWER on IntegriCloud