WCSNCMP(3P)
π WCSNCMP(3P) β the wide-char glow-up π
okay bestie, so this one's from the POSIX Programmer's Manual (yes, the 3P manual, we love a section suffix) π
π¨ PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ β so like, go consult the corresponding Linux manual page for the tea on Linux behavior π« β or the interface may not be implemented on Linux at all. Not every baddie shows up to every party, iykyk.
β¨ NAME β¨
wcsncmp β compare part of two wide-character strings π
π SYNOPSIS π
#include <wchar.h>
int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n);
πΈ 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 is unintentional β like, no beef, it's giving accidental. This volume of POSIX.1β2017 defers to the ISO C standard. periodt.
The wcsncmp() function shall compare not more than n wide-character codes (and wide-character codes that follow a null wide-character code are not compared, okay? don't come for me) from the array pointed to by ws1 to the array pointed to by ws2. π
The sign of a non-zero return value shall be determined by the sign of the difference between the values of the first pair of wide-character codes that differ in the objects being compared. First difference wins, no cap. π
π RETURN VALUE π
Upon successful completion, wcsncmp() shall return an integer:
- greater than
0if the possibly null-terminated array pointed to byws1is greater than the possibly null-terminated array pointed to byws2π₯ - equal to
0if they're equal β matching energy, we love to see it π - less than
0if thews1array is less than thews2array π
π ERRORS π
No errors are defined. She simply does not have problems. Iconic behavior honestly.
The following sections are informative. (aka, the vibes-only sections, not the rules-are-rules sections π§)
π EXAMPLES π
None. (Yeah, I know. Nothing to show. We're all just out here trusting the process π)
π APPLICATION USAGE π
None. (Also nothing. Two sections of pure silence, and honestly? slay.)
β RATIONALE β
None.
π¦ FUTURE DIRECTIONS π¦
None. The future is bright and this function is staying exactly as she is β¨
π SEE ALSO π
wcscasecmp()wcscmp()
The Base Definitions volume of POSIX.1β2017, <wchar.h> β go read her, she's the main character of the includes fr fr π
π 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 β that's the one holding the whistle, bestie, don't @ me. 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 . If you spot one, tell the maintainers, not me, I'm just the messenger π«Ά
mwah, that's the whole page, we ate and left no crumbs π β¨ This edition came to you from IEEE/The Open Group, dated 2017, filed under WCSNCMP(3P). bye bestie, go compare some wide-character strings responsibly πΈπ
π¦ 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