1wmemchr(3C) Standard C Library Functions wmemchr(3C)
2
3
4
6 wmemchr - find a wide-character in memory
7
9 #include <wchar.h>
10
11 wchar_t *wmemchr(const wchar_t *ws, wchar_t wc, size_t n);
12
13
14 ISO C++
15 #include <wchar.h>
16
17 const wchar_t *wmemchr(const wchar_t *ws, wchar_t wc, size_t n);
18
19
20 #include <cwchar>
21
22 wchar_t *std::wmemchr(wchar_t *ws, wchar_t wc, size_t n);
23
24
26 The wmemchr() function locates the first occurrence of wc in the ini‐
27 tial n wide-characters of the object pointed to be ws. This function is
28 not affected by locale and all wchar_t values are treated identically.
29 The null wide-character and wchar_t values not corresponding to valid
30 characters are not treated specially.
31
32
33 If n is 0, ws must be a valid pointer and the function behaves as if
34 no valid occurrence of wc is found.
35
37 The wmemchr() function returns a pointer to the located wide-charac‐
38 ter, or a null pointer if the wide-character does not occur in the
39 object.
40
42 No errors are defined.
43
45 See attributes(5) for descriptions of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │Interface Stability │Standard │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │MT-Level │MT-Safe │
56 └─────────────────────────────┴─────────────────────────────┘
57
59 wmemcmp(3C), wmemcpy(3C), wmemmove(3C), wmemset(3C), attributes(5),
60 standards(5)
61
62
63
64SunOS 5.11 14 Aug 2002 wmemchr(3C)