NWLstrcspn

Computes the segment length of a specified string containing characters not found in 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) NWLstrcspn  ( 
     const nstr N_FAR  *string1,  
     const nstr N_FAR  *string2); 
  
  

Pascal Syntax

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

Parameters

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

Return Values

0x0000

string1 =0

non-zero

0-based byte position in the string1 parameter of the first character which matches any character in the string2 parameter

Remarks

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.

See Also

NWLstrspn, NWLstrpbrk