unisize

Determines the size in bytes (not characters) the current string occupies including the 2-byte 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) unisize  ( 
      const unicode N_FAR  *s);
   

Pascal Syntax

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

Parameters

s
(IN) Points to the string for which to get the size.

Return Values

Returns the number of bytes in the string pointed to by the s parameter including the terminating NULL character.

Remarks

For sample code, see Section 3.27, Example: unisize.

See Also

unilen