NWLstrspn(3nw)
NWLstrspn --
computes the segment length of a specified string consisting entirely of characters from another string
Synopsis
#include <time.h> or #define NWL_EXCLUDE_TIME
#include <stdio.h> or #define NWL_EXCLUDE_FILE
#include <nwlocale.h>
size_t NWAPI NWLstrspn
(const char NWFAR
string1,
const char NWFAR
string2);
Description
The parameters are as follows:
- string1
-
(IN) Points to the string to search for characters from string2.
- string2
-
(IN) Points to the characters to look for in string1.
Return values
- 0x0000
-
string1 or string2 is NULL.
- Non-zero
-
0-based position of first non-match character
Notices
NWLstrspn computes the length (in bytes) of the maximum initial segment of string1 consisting entirely of characters from string2.
Double-byte characters are treated as single units.
Services
Internationalization
NCP calls
None
References
NWLsetlocale(3nw),
NWLstrcspn(3nw),
NWLstrpbrk(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.