OpenBSD manual page server

Manual Page Search Parameters

WCSCHR(3) Library Functions Manual WCSCHR(3)

wcschrlocate first occurrence of a wide character in a wide string

#include <wchar.h>

wchar_t *
wcschr(const wchar_t *s, wchar_t c);

The () function locates the first occurrence of the wide character c in the wide string s. The terminating null wide character is considered part of the wide string. If c is the null wide character (L'\0'), wcschr() locates the terminating null wide character.

The wcschr() function returns a pointer to the located wide character or NULL if the wide character does not appear in the wide string.

strchr(3), wcscspn(3), wcspbrk(3), wcsrchr(3), wcsspn(3), wcsstr(3), wcstok(3), wmemchr(3)

The wcschr() function conforms to ISO/IEC 9899:1999 (“ISO C99”) and was first introduced in ISO/IEC 9899/AMD1:1995 (“ISO C90, Amendment 1”).

The wcschr() function was ported from NetBSD and first appeared in OpenBSD 3.8.

June 5, 2013 OpenBSD-current