unin2asc

Converts a string from the Unicode to ASCII.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  char *unin2asc (
     char              *dest,
     const unicode_t   *src,
     size_t             nchars);
  

Parameters

dest

(OUT) Points to the ASCII string.

src

(IN) Points to the Unicode string.

nchars

(IN) Specifies the number of characters to convert.

Return Values

Returns the address of the converted string.

Remarks

The unin2asc function is an abbreviated, non-preferred interface to perform translation from Unicode to ASCII characters. It assumes that the source string contains only characters that can be converted in the range 0x00 - 0x7F (7-bit ASCII). Characters that use all eight bits are not translated correctly.

See Also