1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\" References consulted:
6 .\" GNU glibc-2 source code and manual
7 .\" Dinkumware C library reference http://www.dinkumware.com/
8 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
11 .TH WCSSTR 3 2021-03-22 "Linux man-pages (unreleased)"
13 wcsstr \- locate a substring in a wide-character string
16 .RI ( libc ", " \-lc )
21 .BI "wchar_t *wcsstr(const wchar_t *" haystack ", const wchar_t *" needle );
26 function is the wide-character equivalent of the
29 It searches for the first occurrence of the wide-character string
31 (without its terminating null wide character (L\(aq\e0\(aq))
32 as a substring in the wide-character string
37 function returns a pointer to the first occurrence of
47 Note the special case:
50 is the empty wide-character string,
51 the return value is always
55 For an explanation of the terms used in this section, see
63 Interface Attribute Value
66 T} Thread safety MT-Safe
72 POSIX.1-2001, POSIX.1-2008, C99.