PEEKC(3)
π peekc(3) β PEEKC(3) π
okay so bestie, welcome to PEEKC(3) from SchilyΒ΄s LIBRARY FUNCTIONS. This is the group chat where we learn what peekc() does, and it's honestly a tiny icon. π
π NAME π
peekc() β shows the next character in the file. That's it. That's the whole vibe. π
β¨ SYNOPSIS β¨
int peekc(f)
FILE *f;
πΈ DESCRIPTION πΈ
peekc() shows the next character in the file. It does not remove the character. So the next call to peekc() or getc() will return the same character. no cap, it's just peeking. π«£
π RETURNS π
Returns the next character in the file, or EOF if the file is at the end of data. That's the whole return situation, bestie. π
π§ NOTES π§
- This call may be used only on buffered files. Like, only. Don't try to make it happen on unbuffered files, okay? π
- Notice that
peekc()is not declared as typechar, sinceEOFis not a valid value for acharobject. This is literally important, iykyk. π₯
This iconic page was brought to you by Joerg Schilling, dated 2022/09/09, and it's PEEKC(3) β periodt. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms