NWLstrcspn
Computes the segment length of a specified string containing characters not found in another string
#include <time.h> or #define NWL_EXCLUDE_TIME #include <stdio.h> or #define NWL_EXCLUDE_FILE #include <nwlocale.h> N_EXTERN_LIBRARY(size_t) NWLstrcspn ( const nstr N_FAR *string1, const nstr N_FAR *string2);
uses netwin32 Function NWLstrcspn (const string1 : pnstr; const string2 : pnstr ) : size_t;
NWLstrcspn computes the length (in bytes) of the maximum initial segment of the string1 parameter consisting entirely of characters not in the string2 parameter.
Either or both of the strings can have double-byte characters.