×
Namespaces

Variants
Actions
Revision as of 17:18, 29 May 2008 by jaaura (Talk | contribs)

How to declare a wide-char string

From Nokia Developer Wiki
Jump to: navigation, search

The following code shows the procedure to declare a wide-char string in Open C:

To declare a wide-char string, prefix the string with 'L'.

#include <wchar.h>
 
int main(void)
{
wchar_t *wptr = L"FNWiki wide char string example";
 
wprintf(L"%ls\n",wptr);
getwchar();
}

Links

71 page views in the last 30 days.
×