svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
wcsstr(3c)
wcsstr(3C) Standard C Library Functions wcsstr(3C)
NAME
wcsstr, wcswcs - find a wide-character substring
SYNOPSIS
#include <wchar.h>
wchar_t *wcsstr(const wchar_t *restrict ws1, const wchar_t *restrict ws2);
wchar_t *wcswcs(const wchar_t *ws1, const wchar_t *ws2);
ISO C++
#include <wchar.h>
const wchar_t *wcsstr(const wchar_t *ws1, const wchar_t *ws2);
#include <cwchar>
wchar_t *std::wcsstr(wchar_t *ws1, const wchar_t *ws2);
DESCRIPTION
The wcsstr() function locates the first occurrence in the wide-charac‐
ter string pointed to by ws1 of the sequence of wide-characters (ex‐
cluding the terminating null wide-character) in the wide-character
string pointed to by ws2.
The wcswcs() function performs the same operation as the wcsstr() func‐
tion. It is provided for backwards compatibility with older standards
and older Solaris releases. New code should use the wcsstr() function
instead for greater portability.
RETURN VALUES
On successful completion, wcsstr() returns a pointer to the located
wide-character string, or a null pointer if the wide-character string
is not found.
If ws2 points to a wide-character string with zero length, the function
returns ws1.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelAsync-Signal-
Safe _ StandardSee below.
Standard
See standards(7) for descriptions of the following standards:
tab() box; cw(2.44i) |cw(3.06i) lw(2.44i) |lw(3.06i) INTERFACESAPPLICA‐
BLE STANDARDS _ wcsstr()T{
C95 through C11,
POSIX.1-2001 through 2008,
SUS through SUSv4,
XPG4 through XPG7
T} _ wcswcs()T{
POSIX.1-2001,
SUS through SUSv3,
XPG4 through XPG6
T}
SEE ALSO
wschr(3C), attributes(7), standards(7)
HISTORY
The wcsstr() function was added to Solaris in the Solaris 7 release.
The wcswcs() function was added to Solaris in the Solaris 2.4 release.
Oracle Solaris 11.4 25 Nov 2024 wcsstr(3C)