unichr

Finds the first occurrence of a given character in a specified string

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) unichr  ( 
      const unicode N_FAR  *s,  
      unicode               c);
   

Pascal Syntax

   uses netwin32 
    
   Function unichr 
     (s : const unicode;           
      c : unicode           
   ) : punicode;
   

Parameters

s
(IN) Points to the string to be scanned.
c
(IN) Specifies the character to be found.

Return Values

Non-NULL

Pointer to the first occurrence of the character c in s.

NULL

c does not occur in s.

Remarks

The NULL terminator is part of the string. For example, unichr(string,0) returns a pointer to the terminating NULL character of string.

unichr corresponds to the C strchr function.

For sample code, see Section 3.12, Example: unichr.

See Also

unirchr, unistr