std::fgetwc(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

okay so bestie, the NAME line is literally std::fgetwc β€” std::fgetwc, and the full manual-page energy is std::fgetwc(3), straight from the C++ standard library. It's the function that reads one wide character from a stream, and getwc is its little twin. periodt. πŸ’…

✨ Synopsis ✨

Defined in header <cwchar>

std::wint_t fgetwc( std::FILE* stream );
std::wint_t getwc( std::FILE* stream );

Reads the next wide character from the given input stream. getwc() may be implemented as a macro and may evaluate stream more than once. πŸ‘€ so like, heads up: it might not be a cute single-evaluation situation, bestie.

🌸 Parameters 🌸

  • stream β€” the stream to read the wide character from. 🫢

πŸ’– Return value πŸ’–

The next wide character from the stream, or WEOF if an error has occurred or the end of file has been reached. If an encoding error occurred, errno is set to EILSEQ. 😭 that's the whole tea.

πŸ¦‹ See also πŸ¦‹

  • fgetc β€” gets a character from a file stream
  • getc β€” (function)
  • fgetws β€” gets a wide string from a file stream (function)
  • fputwc β€” writes a wide character to a file stream
  • putwc β€” (function)
  • ungetwc β€” puts a wide character back into a file stream (function)
  • C documentation for fgetwc

mwah πŸ’‹ this page comes from http://cppreference.com, dated 2024.06.10, and it's filed as std::fgetwc(3) β€” iconic, no cap. 🫢✨

πŸ“¦ where this page comes from