Working with wchar in C
- by Richard Mar.
I have this code:
#include <stdio.h>
#include <wchar.h>
int main()
{
wchar_t *foo = L"ðh";
wprintf(L"[%ls]\n", foo); return 0;
}
And when I compile it, it gives me the implicit declaration of function ‘wprintf’ warning. I know that I should link the wchar library during compilation, but how do I do that?