GETWC(3P)
π GETWC(3P) β POSIX Programmer's Manual π
okay bestie, we're in the POSIX Programmer's Manual rn, and this lil page is all about getwc β she's the one who grabs a wide character off a stream for you π
β¨ PROLOG β¨
so like, this manual page is part of the POSIX Programmer's Manual. and here's the tea: the Linux implementation of this interface may differ β if you're on Linux, go peek at the corresponding Linux manual page for the actual Linux behavior, mkay? or honestly the interface might just not be implemented on Linux at all. no cap, that's a real possibility. π
πΈ NAME πΈ
getwc β get a wide character from a stream β¨
π¦ SYNOPSIS π¦
#include <stdio.h>
#include <wchar.h>
wint_t getwc(FILE *stream);
π DESCRIPTION π
the functionality described on this reference page is aligned with the ISO C standard. any conflict between the requirements described here and the ISO C standard? unintentional, bestie. this volume of POSIX.1β2017 defers to the ISO C standard. periodt.
the getwc() function shall be equivalent to fgetwc(), EXCEPT β and this is the important part β if it is implemented as a macro, it may evaluate stream more than once. so likeβ¦ the argument should never be an expression with side-effects. fr fr. π
β RETURN VALUE β
refer to fgetwc(). that's it. she's passing the buck, respectfully π
π₯ ERRORS π₯
refer to fgetwc().
the following sections are informative. iykyk.
π EXAMPLES π
none. π not a single one. we move.
π APPLICATION USAGE π
since it may be implemented as a macro, getwc() may treat a stream argument with side-effects incorrectly. in particular:
getwc(*f++)
does not necessarily work as expected. so thereforeβ¦ use of this function is not recommended. bestie, just use fgetwc() instead. i'm literally begging you. π«Ά
π§ RATIONALE π§
none.
π FUTURE DIRECTIONS π
none.
π SEE ALSO π
- Section 2.5, Standard I/O Streams,
fgetwc() - The Base Definitions volume of
POSIX.1β2017,<stdio.h>,<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. 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! this one came from IEEE/The Open Group, 2017 βGETWC(3P), she's an icon, she's a legend, and she is the moment. mwah πβ¨ (also fr, usefgetwc(). i love you. π«Ά)
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms