1WCSSTR(3)                  Linux Programmer's Manual                 WCSSTR(3)
2
3
4

NAME

6       wcsstr - locate a substring in a wide-character string
7

SYNOPSIS

9       #include <wchar.h>
10
11       wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle);
12

DESCRIPTION

14       The wcsstr() function is the wide-character equivalent of the strstr(3)
15       function.  It searches for the first occurrence of  the  wide-character
16       string  needle (without its terminating L'\0' character) as a substring
17       in the wide-character string haystack.
18

RETURN VALUE

20       The wcsstr() function returns a pointer to the first occurrence of nee‐
21       dle  in  haystack.   It returns NULL if needle does not occur as a sub‐
22       string in haystack.
23
24       Note the special case: If needle is the  empty  wide-character  string,
25       the return value is always haystack itself.
26

CONFORMING TO

28       C99.
29

SEE ALSO

31       strstr(3), wcschr(3)
32

COLOPHON

34       This  page  is  part of release 3.22 of the Linux man-pages project.  A
35       description of the project, and information about reporting  bugs,  can
36       be found at http://www.kernel.org/doc/man-pages/.
37
38
39
40GNU                               1999-07-25                         WCSSTR(3)
Impressum