PEEKC(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

πŸ’– 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 type char, since EOF is not a valid value for a char object. 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