]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/ungetwc.3
getwchar.3, infnan.3, iswalnum.3, iswalpha.3, iswcntrl.3, iswctype.3, iswdigit.3...
[thirdparty/man-pages.git] / man3 / ungetwc.3
index 6185ec2208551e8b51d06041458ce545e0b8b657..093c84488ad690fb1835b8937a1983e569048568 100644 (file)
@@ -28,20 +28,38 @@ The
 function is the wide-character equivalent of the
 .BR ungetc (3)
 function.
-It pushes back a wide character onto \fIstream\fP and returns it.
+It pushes back a wide character onto
+.I stream
+and returns it.
 .PP
-If \fIwc\fP is \fBWEOF\fP, it returns \fBWEOF\fP.
-If \fIwc\fP is an invalid wide character,
-it sets \fIerrno\fP to \fBEILSEQ\fP and returns \fBWEOF\fP.
+If
+.I wc
+is
+.BR WEOF ,
+it returns
+.BR WEOF .
+If
+.I wc
+is an invalid wide character,
+it sets
+.IR errno 
+to
+.B EILSEQ
+and returns
+.BR WEOF .
 .PP
-If \fIwc\fP is a valid wide character, it is pushed back onto the stream
+If
+.I wc
+is a valid wide character, it is pushed back onto the stream
 and thus becomes available for future wide-character read operations.
 The file-position indicator is decremented by one or more.
 The end-of-file
 indicator is cleared.
 The backing storage of the file is not affected.
 .PP
-Note: \fIwc\fP need not be the last wide-character read from the stream;
+Note:
+.I wc
+need not be the last wide-character read from the stream;
 it can be any other valid wide character.
 .PP
 If the implementation supports multiple push-back operations in a row, the
@@ -50,7 +68,11 @@ level of push-back is guaranteed.
 .SH RETURN VALUE
 The
 .BR ungetwc ()
-function returns \fIwc\fP when successful, or \fBWEOF\fP upon
+function returns
+.IR wc 
+when successful, or
+.B WEOF
+upon
 failure.
 .SH CONFORMING TO
 C99.