Receiving unicode string in c -


I want to write a simple program that receives a Unicode string. However, although I compile in Unicode, it seems that my wscanf function looks on string as ANSI string. My code is the same:

  wchar_t name [25]; Wscanf (l "% s", name);  

What am I missing?

You can specify the format specifier % ls ( % Lc ).

  wchar_t name [25]; Wscanf (l "% ls", name);  

Comments

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -