wcschr(3)
β¨ wcschr(3) β¨
okay bestie, welcome to the wcschr page β it's a section 3 library function from the Linux man-pages, and honestly? she's a classic. tiny function, big main character energy. let's get into it π«Ά
π NAME π
wcschr β search a wide character in a wide-character string
π LIBRARY π
Standard C library (libc, -lc)
no cap, it's just sitting right there in libc waiting for you π
πΈ SYNOPSIS πΈ
#include <wchar.h>
wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
π¦ DESCRIPTION π¦
So here's the vibe. wcschr() is literally the wide-character equivalent of strchr(3) β same energy, different alphabet π«
What she does is: she searches for the first occurrence of wc in the wide-character string pointed to by wcs. That's it. That's the whole job. She finds the first one, she does not go looking for seconds, she is not nosy like that π
π RETURN VALUE π
- She returns a pointer to the first occurrence of
wcin the wide-character string pointed to bywcs⨠- Or she returns
NULLifwcdoes not occur in the string at all π (it happens, no shame)
π ATTRIBUTES π
for the full breakdown of what these terms even mean, go peek at attributes(7) β she explains it better than I ever could π
- Interface:
wcschr() - Attribute: Thread safety
- Value:
MT-Safe
translation? she's MT-Safe, so she plays nicely with your threads. slay π§
β STANDARDS β
C11, POSIX.1-2008.
certified, standardized, iconic π
π HISTORY π
POSIX.1-2001, C99.
she's been around since forever and she has never once needed a glow-up π
π SEE ALSO π
go read her sisters, they're all serving π
k that's the whole page bestie, go find your characters π₯
mwah π this was brought to you by Linux man-pages 6.20, dated 2026-02-08, filed under wcschr(3) β periodt.
π¦ where this page comes from
- 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 6.20
- π the page's license: GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms