uni2utf8

Converts a string from Unicode to UTF-8.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  int uni2utf8 (
     char              *dest,
     const unicode_t   *src);
  

Parameters

dest

(OUT) Points to the converted string.

src

(IN) Points to the source string.

Return Values

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

Decimal

Name

Description

-532

UNI_ERR_UNMAPPABLE_CHAR

The source contains an unmappable character.

Remarks

For sample code, see UniLib.c.

See Also