c - Conversion between char and wchar_t in NDK -
assume:
char from[10]="abcd"; wchar_t to[10]=l""; in gcc under linux , msvc, can use: sscanf(from, "%s", to); wchar_t string l"abcd" in to. not work in ndk.
i want know whether supported in ndk? there alternatives?
i know can use copy loop accomplish this:
for (int = 0; <= strlen(from); ++i) to[i] = from[i]; i'm using android-ndk-r7-crystax-5.beta2-linux-x86.tar.bz2 . string contains ascii characters, i'm don't want use iconv.
google android ndk said:support wchar function。but wchar function provided empty. such as:wsclen(), return 1. can use http://www.crystax.net/ ndk,
Comments
Post a Comment