In Windows,
wchar_t *pStr = L"Hello";
works, but I can't find the equivalent to Unix system.
How can I make static stack-memory-based wide character string in C in Unix?
In Windows,
wchar_t *pStr = L"Hello";
works, but I can't find the equivalent to Unix system.
How can I make static stack-memory-based wide character string in C in Unix?
My Mistake!
It works. I used
short *pStr = L"Hello";
in real code. Which made pointer conversion warning.
Above code of wchar_t works.