NWLstrcspn(3nw)


NWLstrcspn -- computes the segment length of a specified string containing characters not found in 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 NWLstrcspn (const char NWFAR *string1, const char NWFAR *string2);

Description

The parameters are as follows:

string1
(IN) Points to the string to examine for characters from string2

string2
(IN) Points to the characters to look for in string1.

Return values

0x0000
string1=0

Non-zero
0-based byte position in string1 of the first character which matches any character in string2.

Notices

NWLstrcspn computes the length (in bytes) of the maximum initial segment of string1 consisting entirely of characters not from string2.

Either or both of the strings can have double-byte characters.

Services

Internationalization

NCP calls

None

References

NWLstrspn(3nw), NWLstrpbrk(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.