From 162eb9fa4efd5e7804938d0afb33828aa58d2484 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 1 Sep 2001 14:01:52 +0000 Subject: Describe file-position behaviour from POSIX --- lib/libc/stdio/ungetc.3 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libc') 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 -- cgit v1.1