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>
π COPYRIGHT π
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 πβ¨
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms