Linux.com

Typo

Posted by: Anonymous Coward on February 13, 2006 08:06 AM
To use wchar_t, include the header . Declare compile-time initialized characters and strings with the prefix L, for example:
char widechar = L'\0';
char* widestring = L"Hello, world!";

This should be changed to:

wchar_t widechar = L'\0';
wchar_t* widestring = L"Hello, world!";

#

Return to Programming with wide characters