2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .TH wcsstr 3 (date) "Linux man-pages (unreleased)"
14 wcsstr \- locate a substring in a wide-character string
17 .RI ( libc ", " \-lc )
22 .BI "wchar_t *wcsstr(const wchar_t *" haystack ", const wchar_t *" needle );
27 function is the wide-character equivalent of the
30 It searches for the first occurrence of the wide-character string
32 (without its terminating null wide character (L\[aq]\e0\[aq]))
33 as a substring in the wide-character string
38 function returns a pointer to the first occurrence of
48 Note the special case:
51 is the empty wide-character string,
52 the return value is always
56 For an explanation of the terms used in this section, see
62 Interface Attribute Value
67 T} Thread safety MT-Safe