WCSCOLL(3)
π WCSCOLL(3) β Library Functions Manual β¨
okay so bestie, welcome to the Library Functions Manual page for WCSCOLL(3) β the wide-string collation girlie herself. sheβs here to compare wide strings the locale-correct way, and yes, she ate. π
π NAME π
wcscoll β compare wide strings according to current collation. thatβs the whole name, no cap. β¨
π LIBRARY π
She lives in the Standard C Library (libc, -lc) β yes, thatβs the whole library flex. π
πΈ SYNOPSIS πΈ
#include <wchar.h>
int
wcscoll(const wchar_t *s1, const wchar_t *s2);
π¦ DESCRIPTION π¦
The wcscoll() function compares the null-terminated strings s1 and s2 according to the current locale collation order. literally what she said. π¦
In the βCβ locale, wcscoll() is equivalent to wcscmp(). iykyk. π
π«Ά RETURN VALUES π«Ά
The wcscoll() function returns an integer greater than, equal to, or less than 0, if s1 is greater than, equal to, or less than s2. yes, sheβs giving comparison-result main character energy. π
No return value is reserved to indicate errors; callers should set errno to 0 before calling wcscoll(). If it is non-zero upon return from wcscoll(), an error has occurred. so like, check errno, bestie β thatβs the vibe check. π¨
π ERRORS π
The wcscoll() function will fail if:
[EILSEQ]β An invalid wide character code was specified. π[ENOMEM]β Cannot allocate enough memory for temporary buffers. π
π¦ SEE ALSO π¦
go read the sisters, bestie. π«Ά
π STANDARDS π
The wcscoll() function conforms to ISO/IEC 9899:1999 (βISO C99β). certified iconic. β
π BUGS π
The current implementation of wcscoll() only works in single-byte LC_CTYPE locales, and falls back to using wcscmp() in locales with extended character sets. okay so this is the real tea: single-byte LC_CTYPE locales? she works. locales with extended character sets? she falls back to wcscmp(). β οΈ
mwah π β this page is from Debian, dated October 4, 2002, and the page is WCSCOLL(3). periodt. π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1990, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms