Converts a string from the ASCII to Unicode.
#include <unilib.h> unicode_t *ascn2uni ( unicode_t *dest, const char *src, size_t nbytes);
(OUT) Points to the converted Unicode string.
(IN) Points to the ASCII source string.
(IN) Specifies the number of bytes to translate.
Returns the address of the converted string.
The ascn2uni function is an abbreviated, non-preferred interface to perform translation from local to Unicode. It assumes that the source string contains only characters in the range 0x00 - 0x7F (7-bit ASCII). Characters that use all eight bits are not translated correctly. This function is useful for quickly translating ASCII strings in source code into Unicode.