valuemb

Returns the integer value of the specified character, whether single or multibyte.

Library:LibC
Classification:Novell
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  int valuemb (
     const char   *string);
  

Parameters

string

(IN) Points to a character in a multibyte string.

Return Values

Returns the integer value of the character specified by the string parameter. If this is a single-byte character, the value will be 255 or less; if a double-byte character, 65535 or less.

Remarks

If the host configuration supports multibyte characters, the valuemb function uses the host table, as recorded by the library at start up, to determine whether the character pointed to by the string parameter is a multibyte character or single-byte, and then returns the integer value. For example, if the character is “a”, valuemb would return 0x61 because a is a single-byte character. A double-byte character would return a value such as 0x8161. The NetWare operating system supports only single and double-byte characters.

See Also