I\'ve found answers to this question for many programming languages, except for C, using the Windows API. No C++ answers please. Consider the following:
#include
char *string = "The quick brown fox jumps over the lazy dog";
size_t len = strlen(string);
WCHAR unistring[len + 1];
int result = MultiByteToWideChar(CP_OEMCP, 0, string, -1, unistring, len + 1);