On Sun, May 19, 2013 at 8:20 AM, Dmitry Timoshkov <dmi...@baikal.ru> wrote:

> George Stephanos <gaf.stepha...@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.
>

Well I do need the functions to be boundable by length, or else I'd need to
do some copying.
I'm going to post the updated patch with memcmp until a better solution
comes up.


Reply via email to