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 wc in the wide-character string pointed to by wcs ✨
  • Or she returns NULL if wc does 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