unilen

Returns the number of unicode characters in a string (not counting the NULL terminator)

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(size_t) unilen  ( 
      const unicode N_FAR  *s);
   

Pascal Syntax

   uses netwin32 
    
   Function unilen 
     (s : const unicode           
   ) : size_t;
   

Parameters

s
(IN) Points to the string for which to determine the length.

Return Values

Number of characters (not bytes) in s, not counting the null-terminating character.

Remarks

unilen corresponds to the C strlen function.

For sample code, see Section 3.17, Example: unilen.

See Also

unisize