Hello,
Is there a elegant way to convert 'const wchar *' to 'const char *' on Mac OS X?
Kat
Hello,
Is there a elegant way to convert 'const wchar *' to 'const char *' on Mac OS X?
Kat
Use wcstombs
:
size_t wcstombs(char *dest, const wchar_t *src, size_t n);
Make sure you have your locale set appropriately.