NWLstrstr

Searches a specified string for a given character 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> 
   
  pnstr N_API NWLstrstr ( 
     const nstr N_FAR  *string,  
     const nstr N_FAR  *searchString); 
  
  

Pascal Syntax

  uses netwin32 
   
  Function NWLstrstr 
    (str : pnstr; 
     searchString : pnstr 
  ) : pnstr; 
  
  

Parameters

string
(IN) Points to the string to be searched.
searchString
(IN) Points to the character string for which to search.

Return Values

NULL

If the string pointed to by the searchString parameter is not found within the string parameter, or thesearchString parameter is NULL or an empty string

non-NULL

Points to the string parameter beginning with the characters specified in the searchString parameter

Remarks

Double-byte characters are handled properly.

Unlike the ANSI version, if the searchString parameter points to an empty string (has zero length), NWLstrstr will return NULL instead of a pointer to the string parameter.

See Also

NWLsetlocale, NWLstrchr