contents   index   previous   next



Clib.strspn()

syntax:

Clib.strspn(str, chrSet)

where:

str - string to be searched.

 

chrSet - set of characters to search for.

 

return:

number - the offset or index into str of the first character that is not in chrSet.

 

description:

This method searches a string for any characters that are not in chrSet, and returns the offset of the first instance of such a character. If all characters in str are also in chrSet, the return is the length of string.

 

see:

Clib.strcspn()

 

 


Clib.strstr()