PUTWCHAR(3POSIX)

πŸŽ€ PUTWCHAR β€” the put-a-wide-char-on-stdout girlie πŸŽ€

okay bestie, sit down, we're reading the POSIX Programmer's Manual page for putwchar from PUTWCHAR(3POSIX) and it is literally so much shorter than you think πŸ’–

🌸 PROLOG 🌸

Real talk first, no cap: this manual page is part of the POSIX Programmer's Manual.

⚠️ Heads up bestie β€” the Linux implementation of this interface may differ, so go consult the corresponding Linux manual page for the deets on Linux behavior. Or… the interface may not even be implemented on Linux at all 😭. Vibe check accordingly.

✨ NAME ✨

putwchar β€” put a wide character on a stdout stream

that's it. that's the job. one wide char, one stdout. iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <wchar.h>

wint_t putwchar(wchar_t wc);

πŸ’… DESCRIPTION πŸ’…

The functionality described on this reference page is aligned with the ISO C standard. Fr fr. So if there's any conflict between the requirements described here and the ISO C standard, that conflict is unintentional β€” nobody did that on purpose πŸ™ˆ. This volume of POSIX.1‐2017 defers to the ISO C standard, periodt.

And here's the whole plot twist:

The function call putwchar(wc) shall be equivalent to putwc(wc,stdout).

that's it. that's the function. she's a one-liner and she ATE. πŸ‘‘


πŸ”₯ RETURN VALUE πŸ”₯

Refer to fputwc().

yeah bestie, she doesn't do her own returns, she outsources. go read fputwc().


πŸ’€ ERRORS πŸ’€

Refer to fputwc().

The following sections are informative.


🌈 EXAMPLES 🌈

None.

not a single one. the well is dry. she said "figure it out" πŸ’…


πŸ“ APPLICATION USAGE πŸ“

None.


🧚 RATIONALE 🧚

None.


⭐ FUTURE DIRECTIONS ⭐

None.


πŸ’œ SEE ALSO πŸ’œ

  • Section 2.5, Standard I/O Streams
  • fputwc()
  • putwc()
  • The Base Definitions volume of POSIX.1‐2017, <wchar.h>

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document β€” like, she's the final boss, no arguing.

The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


and that's the whole page, bestie 🫢 β€” brought to you by IEEE/The Open Group, 2017, living under the name PUTWCHAR(3POSIX). mwah, go call fputwc() if you need the actual details, ily πŸ’–βœ¨