diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-26 16:38:00 -0400 |
| commit | 97d5c458cfa039d857301e1ca7d5af3beb37131d (patch) | |
| tree | b460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/ungetc.3 | |
| parent | b89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff) | |
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/ungetc.3')
| -rw-r--r-- | static/unix-v10/man3/ungetc.3 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/static/unix-v10/man3/ungetc.3 b/static/unix-v10/man3/ungetc.3 new file mode 100644 index 00000000..8250c121 --- /dev/null +++ b/static/unix-v10/man3/ungetc.3 @@ -0,0 +1,39 @@ +.TH UNGETC 3S +.CT 2 file_io +.SH NAME +ungetc \(mi push character back into input stream +.SH SYNOPSIS +.B #include <stdio.h> +.PP +.B ungetc(c, stream) +.br +.SM +.B FILE +.B *stream; +.SH DESCRIPTION +.I Ungetc +pushes the character +.I c +back on an input stream. +That character will be returned by the next +.I getc +call on that stream. +.I Ungetc +returns +.IR c . +.PP +One character of pushback is guaranteed provided +something has been read from the stream and the stream is +actually buffered. +Attempts to push +.B EOF +are rejected. +.SH "SEE ALSO" +.IR getc (3), +.IR stdio (3), +.IR fseek (3) +.SH DIAGNOSTICS +.I Ungetc +returns +.B EOF +if it can't push a character back. |
