Hi Ian! On 5/26/23 17:19, Ian Abbott wrote: > As per the C standard, calling ungetc() with the character parameter > equal to EOF causes it to fail, returning EOF. > > Signed-off-by: Ian Abbott <abbotti@xxxxxxxxx> > --- > man3/fgetc.3 | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/man3/fgetc.3 b/man3/fgetc.3 > index 75dcaeaf6..d6bf62327 100644 > --- a/man3/fgetc.3 > +++ b/man3/fgetc.3 > @@ -62,7 +62,13 @@ A terminating null byte (\[aq]\e0\[aq]) > is stored after the last character in the buffer. > .PP > .BR ungetc () > -pushes > +returns > +.B EOF > +if the value of > +.I c > +equals that of the macro > +.BR EOF , > +otherwise it pushes I would put that detail at the end of the description, rather than the beginning. In C code, that kind of short-cutting can help reading, but in the manual, it's better left as a detail at the end of it, to give it less importance. Cheers, Alex > .I c > back to > .IR stream , -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature