c-env-utils
C library to get environment information
Loading...
Searching...
No Matches
env_utils_windows.h File Reference
#include "env_utils.h"

Go to the source code of this file.

Functions

_ENVU_EXTERN wchar_t * envuUTF8toUTF16 (const char *str)
 Convert a UTF8 string to UTF16.
 
_ENVU_EXTERN char * envuUTF16toUTF8 (const wchar_t *wstr)
 Convert a UTF16 string to UTF8.
 

Function Documentation

◆ envuUTF16toUTF8()

_ENVU_EXTERN char * envuUTF16toUTF8 ( const wchar_t *  wstr)

Convert a UTF16 string to UTF8.

Note
Strings that are returned from this method should be freed with envuFree().
Parameters
wstra UTF16 string.
Returns
A UTF8 string.

◆ envuUTF8toUTF16()

_ENVU_EXTERN wchar_t * envuUTF8toUTF16 ( const char *  str)

Convert a UTF8 string to UTF16.

Note
Strings that are returned from this method should be freed with envuFree().
Parameters
stra UTF8 string.
Returns
A UTF16 string.