Query: wcsspn
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
wcsspn(3) Library Functions Manual wcsspn(3)NAMEwcsspn, wcscspn - Return the length of the initial segment of a wide-character stringLIBRARYStandard C Library (libc.so, libc.a)SYNOPSIS#include <wchar.h> size_t wcsspn( const wchar_t *wcstring1, const wchar_t *wcstring2); size_t wcscspn( const wchar_t *wcstring1, const wchar_t *wcstring2);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: wcscspn(), wcsspn(): ISO C, XPG4 Refer to the standards(5) reference page for more information about industry standards and associated tags.PARAMETERSPoints to a wide-character string being checked for an initial segment. Points to a wide-character string containing a set of wide charac- ters that define the initial segment.DESCRIPTIONThe wcsspn() and wcscspn() functions compute the number of wide characters in the initial segment of a wide-character string. The wcsspn() function considers the initial segment to consist of all wide characters that are included in the set of wide characters pointed to by the wcstring2 parameter. The function counts these wide characters until it finds one that is not included in the set. The wcscspn() function considers the initial segment to consist of all wide characters that are not included in the set of wide characters pointed to by the wcstring2 parameter. The function counts these wide characters until it finds one that is included in the set.RETURN VALUESOn successful completion, the wcsspn() and wcscspn() functions return the number of wide characters in the segment. No error return is defined for these functions.RELATED INFORMATIONFunctions: setlocale(3), strspn(3), wcslen(3) Standards: standards(5) delim off wcsspn(3)
Related Man Pages |
---|
strspn(3) - osf1 |
wcscmp(3) - osf1 |
wcsncat(3) - osf1 |
wcsncpy(3) - osf1 |
wmemcmp(3) - osx |
Similar Topics in the Unix Linux Community |
---|
wc -c (number of characters) |