unistr

Scans a string for the first occurrence of a specified substring

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <unicode.h> 
    
   N_EXTERN_LIBRARY(punicode) unistr  ( 
      const unicode N_FAR  *s1,  
      const unicode N_FAR  *s2);
   

Pascal Syntax

   uses netwin32 
    
   Function unistr 
     (s1 : const unicode;        
      s2 : const unicode           
   ) : punicode;
   

Parameters

s1
(IN) Points to the string to be scanned.
s2
(IN) Points to the string to be located.

Return Values

Non-NULL

Pointer to the element in s1 where s2 begins (points to s2 in s1.

NULL

s2 does not occur in s1.

Remarks

If the s2 parameter points to a zero length string, unistr returns the string pointed to by the s1 parameter.

unistr corresponds to the C strstr function.

For sample code, see Section 3.29, Example: unistr.

See Also

unichr