Everything's turning to unicode now, right? How do I start using unicode instead of ASCII in my programs? I tried changing char to wchar_t and all of the string functions into the ones from wchar.h and it works, but does that mean my program uses unicode? I just don't understand all of the crazy rules for internationalization. This is the program I tried and it works fine.
Code:
#include <stdio.h>
#include <wchar.h>
int main(void)
{
wchar_t string[20];
if ( fgetws(string, 20, stdin) != NULL )
{
fputws(string, stdout);
}
}
Is it really that easy?