std::getwchar(3)

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

πŸ’– NAME πŸ’–

okay so this is the std::getwchar(3) page from the C++ Standard Libary ✨ and the name is literally std::getwchar β€” std::getwchar, that’s the whole name, iconic πŸ’….

πŸ¦‹ Synopsis πŸ¦‹

It’s defined in header <cwchar>, bestie 🫢, and here’s the exact signature:

std::wint_t getwchar();

And what does she do? Reads the next wide character from stdin. periodt 🌸.

πŸŽ€ Parameters πŸŽ€

(none) β€” not a single parameter, she takes no args πŸ’–.

⭐ Return value ⭐

The obtained wide character πŸ‘‘ β€” or WEOF if an error has occurred or the end of file is reached. That’s the whole tea, no cap 😭.

🌈 See also 🌈

  • getchar β€” reads a character from stdin (function)
  • fgetwc β€” gets a wide character from a file stream
  • getwc β€” (function)
  • C documentation for getwchar

mwah πŸ’‹ this lil page came from http://cppreference.com, dated 2024.06.10, and it’s the std::getwchar(3) one β€” bye bestie! πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from