standard.C.string.strcspn

strcspn is available since version 1.0.

Prototype:

number strcspn(string string, string strCharSet)

Parameters

string
Null-terminated searched string
strCharSet
Null-terminated character set

Description:

Scans a string for the initial segment not containing any subset of a given set of characters.

Return value:

returns an integer value specifying the length of the initial segment of string that consists entirely of characters not in strCharSet. If string begins with a character that is in strCharSet, the function returns 0. No return value is reserved to indicate an error.