SWPRINTF(3POSIX)
π SWPRINTF π
okay bestie, welcome to the POSIX Programmer's Manual β¨ this one's a lil page from the POSIX set, and just so you know β the Linux version of this interface might lowkey act different (so go check the matching Linux man page for the tea on Linux behavior), or honestly it might not even be implemented on Linux at all. π
πΈ PROLOG πΈ
so this page is part of the POSIX Programmer's Manual, right? and the Linux implementation of this interface may differ β like, consult the corresponding Linux manual page for the details of Linux behavior, no cap. or the interface may not be implemented on Linux, periodt. π
β¨ NAME β¨
swprintf β print formatted wide-character output π¦
π SYNOPSIS π
#include <stdio.h>
#include <wchar.h>
int swprintf(wchar_t *restrict ws, size_t n,
const wchar_t *restrict format, ...);
like, she's got stdio.h and wchar.h in the house, and she takes a wchar_t *restrict ws, a size_t n, a const wchar_t *restrict format, and then ... β yes the ellipsis is invited, she's a variadic icon. π
π DESCRIPTION π
bestie, for this one you gotta go refer to fwprintf(). that's it. that's the whole vibe. she's the wide-character sibling and fwprintf() is holding all the lore. π«Ά
π COPYRIGHT π
okay so legally speaking, 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. π
and here's the important part β if there's ever 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, not this page. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html . π
also β 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 . π
ngl, that's the whole page. she's short, she's sweet, she points you at fwprintf() and she dips. main character energy honestly. π
β¨
so yeah β that's SWPRINTF(3POSIX), brought to you by IEEE/The Open Group, dated 2017. thanks for coming to my ted talk, ily, go read fwprintf() bestie πππ¦
π¦ 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