1wcsstr(3C)               Standard C Library Functions               wcsstr(3C)
2
3
4

NAME

6       wcsstr - find a wide-character substring
7

SYNOPSIS

9       #include <wchar.h>
10
11       wchar_t *wcsstr(const wchar_t *restrict ws1, const wchar_t *restrict ws2);
12
13
14   ISO C++
15       #include <wchar.h>
16
17       const wchar_t *wcsstr(const wchar_t *ws1, const wchar_t *ws2);
18
19
20       #include <cwchar>
21
22       wchar_t *std::wcsstr(wchar_t *ws1, const wchar_t *ws2);
23
24

DESCRIPTION

26       The  wcsstr() function locates the first occurrence in the wide-charac‐
27       ter string  pointed to  by  ws1  of  the  sequence  of  wide-characters
28       (excluding  the  terminating null wide-character) in the wide-character
29       string pointed to by ws2.
30

RETURN VALUES

32       On successful completion,  wcsstr() returns a pointer  to  the  located
33       wide-character  string,  or a null pointer if the wide-character string
34       is not found.
35
36
37       If ws2 points to a wide-character string with zero length, the function
38       returns ws1.
39

ERRORS

41       No errors are defined.
42

ATTRIBUTES

44       See attributes(5) for descriptions of the following attributes:
45
46
47
48
49       ┌─────────────────────────────┬─────────────────────────────┐
50       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │Interface Stability          │Standard                     │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │MT-Level                     │MT-Safe                      │
55       └─────────────────────────────┴─────────────────────────────┘
56

SEE ALSO

58       wschr(3C), attributes(5), standards(5)
59
60
61
62SunOS 5.11                        14 Nov 2003                       wcsstr(3C)
Impressum