utf82uni

Converts a string from UTF-8 to Unicode.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  int utf82uni (
     unicode_t    *dest,
     const char   *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

A character in the source is unmappable.

See Also