unipbrk

Scans a specified string for a given set of characters

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) unipbrk  ( 
      const unicode N_FAR  *s1,  
      const unicode N_FAR  *s2);
   

Pascal Syntax

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

Parameters

s1
(IN) Points to the string to scan.
s2
(IN) Points to the character set.

Return Values

Returns a pointer to the first occurrence of any character in the s2 parameter. NULL is returned if no characters specified in the s2 parameter occurs in string pointed to by the s1 parameter.

Remarks

unipbrk scans the string pointed to by the s1 parameter for the first occurrence of any character appearing in the s2 parameter.

unipbrk corresponds to the C strpbrk function.

For sample code, see Section 3.23, Example: unipbrk.

See Also

unicspn, unispn