uni2char

Converts the specified Unicode character to ASCII.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  int uni2chr (
     UniRuleTable_t   table,
     char            *dest,
     unicode_t        uniCh );
  

Parameters

table

(IN) Specifies the table to use in the conversion. To use the host's default code page, specify UNI_LOCAL_DEFAULT. Otherwise, specify the value returned from the UniGetTable function.

dest

(OUT) Points to the address of the converted character, which is null terminated.

uniCh

(IN) Points to the source character.

Return Values

If successful, returns 0. Otherwise returns a negative error code.

Decimal

Name

Description

-532

UNI_ERR_UNMAPPABLE_CHAR

The character in the source is unmappable.

See Also

chr2uni