Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 18:16, 2 October 2007.

How to declare a wide-char string

From Forum Nokia Wiki

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

Related Discussions
Thread Thread Starter Forum Replies Last Post
Dynamic buffer needed! liying General Symbian C++ 4 2004-01-08 14:47
strings? praktikant General Symbian C++ 4 2007-07-13 09:28
Whats _S used for? Potassium General Symbian C++ 2 2006-07-23 21:14
Unable to append "," to a String or StringBuffer ppresedo Mobile Java General 3 2003-04-12 17:07
How to check the BT is available? SymNLeaner Symbian Networking & Messaging 7 2007-08-31 07:37
 
Powered by MediaWiki