wmemchr(3)

wmemchr3

Wide character string manipulation operations

Usage

#include <wchar.h>

wchar_t *

wcpcpy(wchar_t *s1, wchar_t *s2);

wchar_t *

wcpncpy(wchar_t *s1, wchar_t *s2, size_t n);

int

wcscasecmp(const wchar_t *s1, const wchar_t *s2);

wchar_t *

wcscat(wchar_t * restrict s1, const wchar_t * restrict s2);

wchar_t *

wcschr(const wchar_t *s, wchar_t c);

int

wcscmp(const wchar_t *s1, const wchar_t *s2);

wchar_t *

wcscpy(wchar_t * restrict s1, const wchar_t * restrict s2);

size_t

wcscspn(const wchar_t *s1, const wchar_t *s2);

wchar_t *

wcsdup(const wchar_t *s);

size_t

wcslcat(wchar_t *s1, const wchar_t *s2, size_t n);

size_t

wcslcpy(wchar_t *s1, const wchar_t *s2, size_t n);

size_t

wcslen(const wchar_t *s);

int

wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n);

wchar_t *

wcsncat(wchar_t * restrict s1, const wchar_t * restrict s2, size_t n);

int

wcsncmp(const wchar_t *s1, const wchar_t * s2, size_t n);

wchar_t *

wcsncpy(wchar_t * restrict s1, const wchar_t * restrict s2, size_t n);

size_t

wcsnlen(const wchar_t *s, size_t maxlen);

wchar_t *

wcspbrk(const wchar_t *s1, const wchar_t *s2);

wchar_t *

wcsrchr(const wchar_t *s, wchar_t c);

size_t

wcsspn(const wchar_t *s1, const wchar_t *s2);

wchar_t *

wcsstr(const wchar_t * restrict s1, const wchar_t * restrict s2);

wchar_t *

wmemchr(const wchar_t *s, wchar_t c, size_t n);

int

wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n);

wchar_t *

wmemcpy(wchar_t * restrict s1, const wchar_t * restrict s2, size_t n);

wchar_t *

wmemmove(wchar_t *s1, const wchar_t *s2, size_t n);

wchar_t *

wmemset(wchar_t *s, wchar_t c, size_t n);

#include <wchar.h>

#include <xlocale.h>

int

wcscasecmp_l(const wchar_t *s1, const wchar_t *s2, locale_t loc);

int

wcsncasecmp_l(const wchar_t *s1, const wchar_t *s2, size_t n, locale_t loc);

Library

Standard C Library (libc, -lc)

Overview

The functions implement string manipulation operations over wide character strings. For a detailed description, refer to documents for the respective single-byte counterpart, such as memchr(3).

Releases

155 releases since Mac OS X 10.2; the text changed 3 times.

  1. 10.2–10.2.8
  2. 10.3–10.4.11
  3. 10.5–10.6.8
  4. 10.7–26.5

Standards

These functions conform to ISO/IEC 9899:1999 (“ISO C99”), with the exception of wcpcpy(), wcpncpy(), wcscasecmp(), wcscasecmp_l(), wcsdup(), wcsncasecmp(), wcsncasecmp_l(), and wcsnlen(), which conform to IEEE Std 1003.1-2008 (“POSIX.1”); and wcslcat() and wcslcpy(), which are extensions.

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.