SWPRINTF(3P)

🌸 SWPRINTF(3P) β€” POSIX Programmer's Manual 🌸

okay bestie, welcome to the POSIX Programmer's Manual page for swprintf, from the 3P section πŸ’– (yes, the P stands for POSIX, we love a themed section, iykyk)


✨ PROLOG ✨

okay so real talk before we get into it πŸ’… this manual page is part of the POSIX Programmer's Manual. that means the Linux version of this interface might do stuff differently (so pls go read the matching Linux manual page for the deets on Linux behavior, fr fr), or honestly the interface might not even be implemented on Linux at all 😭. vibe check your platform first, bestie.


πŸŽ€ NAME πŸŽ€

swprintf β€” print formatted wide-character output ✨

like, it's the wide-char girlie of the printf family. she formats, she prints, she's iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <stdio.h>
#include <wchar.h>

int swprintf(wchar_t *restrict ws, size_t n,
    const wchar_t *restrict format, ...);

look at her. restrict twice, size_t n holding it down, and a little ... at the end because she takes whatever extra args you're serving her 🫢


πŸ’œ DESCRIPTION πŸ’œ

so the actual description here? it says: refer to fwprintf(). that's it. that's the whole thing. she's pointing you at her sister 😭 go read fwprintf() bestie, that's where the real tea is. this page is basically a forwarding address πŸ’Œ


okay legal queen moment, don't scroll past this, it matters βš–οΈβœ¨

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 .

no cap, if this version and the original IEEE / The Open Group Standard ever disagree, the original Standard wins. it's the referee document. periodt. 🏁

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 .

so if you spot a typo or a weird formatting moment, it's almost definitely a lil conversion oopsie from turning source files into man page format πŸ™ˆ not the Standard's fault. report it at that link and we move on πŸ’…

and that's the whole page bestie, we ate and left no crumbs πŸ“

<cute sign-off>mwah πŸ’‹ this was brought to you by IEEE/The Open Group, 2017 β€” the source and date of this lil masterpiece, SWPRINTF(3P), signing off πŸŒˆπŸ‘‘βœ¨</cute sign-off>

πŸ“¦ where this page comes from