std::fgetwc(3)
π 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 streamgetcβ (function)fgetwsβ gets a wide string from a file stream (function)fputwcβ writes a wide character to a file streamputwcβ (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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms