Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wcsstr(3c) [opensolaris man page]

wcsstr(3C)						   Standard C Library Functions 						wcsstr(3C)

NAME
wcsstr - find a wide-character substring SYNOPSIS
#include <wchar.h> wchar_t *wcsstr(const wchar_t *restrict ws1, const wchar_t *restrict 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-character string pointed to by ws1 of the sequence of wide-characters (excluding the terminating null wide-character) in the wide-character string pointed to by ws2. 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(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
wschr(3C), attributes(5), standards(5) SunOS 5.11 14 Nov 2003 wcsstr(3C)

Check Out this Related Man Page

WMEMCHR(3)						   BSD Library Functions Manual 						WMEMCHR(3)

NAME
wcscat, wcschr, wcscmp, wcscpy, wcscspn, wcslcat, wcslcpy, wcslen, wcsncat, wcsncmp, wcsncpy, wcspbrk, wcsrchr, wcsspn, wcsstr, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset -- wide character string manipulation operations LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <wchar.h> wchar_t * wcscat(wchar_t *restrict ws1, const wchar_t *restrict ws2); wchar_t * wcschr(const wchar_t *ws, wchar_t wc); int wcscmp(const wchar_t *ws1, const wchar_t *ws2); wchar_t * wcscpy(wchar_t *restrict ws1, const wchar_t *restrict ws2); size_t wcscspn(const wchar_t *ws1, const wchar_t *ws2); size_t wcslcat(wchar_t *ws1, const wchar_t *ws2, size_t n); size_t wcslcpy(wchar_t *ws1, const wchar_t *ws2, size_t n); size_t wcslen(const wchar_t *ws); wchar_t * wcsncat(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); int wcsncmp(const wchar_t *ws1, const wchar_t *ws2, size_t n); wchar_t * wcsncpy(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); wchar_t * wcspbrk(const wchar_t *ws1, const wchar_t *ws2); wchar_t * wcsrchr(const wchar_t *ws, wchar_t wc); size_t wcsspn(const wchar_t *ws1, const wchar_t *ws2); wchar_t * wcsstr(const wchar_t *restrict ws1, const wchar_t *restrict ws2); wchar_t * wmemchr(const wchar_t *ws, wchar_t wc, size_t n); int wmemcmp(const wchar_t *ws1, const wchar_t *ws2, size_t n); wchar_t * wmemcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2, size_t n); wchar_t * wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n); wchar_t * wmemset(wchar_t *ws, wchar_t wc, size_t n); DESCRIPTION
The functions implement string manipulation operations over wide character strings. For a detailed description, refer to documents for the respective single-byte counterpart, such as memchr(3). SEE ALSO
memchr(3), memcmp(3), memcpy(3), memmove(3), memset(3), strcat(3), strchr(3), strcmp(3), strcpy(3), strcspn(3), strlcat(3), strlcpy(3), strlen(3), strncat(3), strncmp(3), strncpy(3), strpbrk(3), strrchr(3), strspn(3), strstr(3) STANDARDS
These functions conform to ISO/IEC 9899:1999 (``ISO C99''), with the exception of wcslcat() and wcslcpy(), which are extensions. BSD
December 22, 2000 BSD
Man Page