19 May
2013
19 May
'13
1:20 a.m.
George Stephanos <gaf.stephanos(a)gmail.com> wrote:
Ah, well, strcmp comes from the C library your compiler uses. wcsncmp can only come from msvcrt. When compiling for Wine, this can result in mixing C runtime libraries, and hilarity can result. ... Perhaps I could just use memcmp?
Use lstrcmpW/lstrcmpiW for unicode string comparisons, and lstrcmpA/lstrcmpiA for ANSI strings (you can't use glibc ones because of locale differencies), they are kernel32 exports, and exist in all Windows versions. -- Dmitry.