summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/ungetc.3
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-09-01 01:56:54 +0000
committerache <ache@FreeBSD.org>2001-09-01 01:56:54 +0000
commit5610a6ae63a163468769d8b1400a386115b53ddf (patch)
tree7df1c1e8cadd1748528a154d73547f9a81702dae /lib/libc/stdio/ungetc.3
parent8f95e37de3db8c34682949479172b82e88dbacc5 (diff)
downloadFreeBSD-src-5610a6ae63a163468769d8b1400a386115b53ddf.zip
FreeBSD-src-5610a6ae63a163468769d8b1400a386115b53ddf.tar.gz
Back out disabling ungetc() at 0, use different solution:
keep negative offset internally, but return 0 externally in ftell*() I.e. use 0 now as 'unspecified value' per POSIX ungetc() description.
Diffstat (limited to 'lib/libc/stdio/ungetc.3')
-rw-r--r--lib/libc/stdio/ungetc.35
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/stdio/ungetc.3 b/lib/libc/stdio/ungetc.3
index 6d657a8..83483be 100644
--- a/lib/libc/stdio/ungetc.3
+++ b/lib/libc/stdio/ungetc.3
@@ -83,10 +83,7 @@ if the operation fails.
If the value of the argument
.Fa c
character equals
-.Dv EOF
-or current
-.Fa stream
-offset equals 0,
+.Dv EOF ,
the operation will fail and the stream will remain unchanged.
.Sh SEE ALSO
.Xr fseek 3 ,
OpenPOWER on IntegriCloud