NWLstrspn

Computes the segment length of a specified string consisting entirely of characters from another string

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Internationalization

Syntax

  #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); 
  
  

Pascal Syntax

  uses netwin32 
   
  Function NWLstrspn 
    (const string1 : pnstr; 
     const string2 : pnstr 
  ) : size_t; 
  
  

Parameters

string1
(IN) Points to the string to search for characters from the string2 parameter.
string2
(IN) Points to the characters to look for in the string1 parameter.

Return Values

0x0000

The string1 or string2 parameter is NULL

non-zero

0-based position of first non-matching character

Remarks

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.

See Also

NWLsetlocale, NWLstrcspn, NWLstrpbrk