NWLstrspn
Computes the segment length of a specified string consisting entirely of characters from 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) NWLstrspn (
const nstr N_FAR *string1,
const nstr N_FAR *string2);
uses netwin32
Function NWLstrspn
(const string1 : pnstr;
const string2 : pnstr
) : size_t;
NWLstrspn computes the length (in bytes) of the maximum initial segment of the string1 parameter consisting entirely of characters from the string2 parameter.
Double-byte characters are treated as single units.