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

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -