<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 19, 2013 at 8:20 AM, Dmitry Timoshkov <span dir="ltr"><<a href="mailto:dmitry@baikal.ru" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=dmitry@baikal.ru&cc=&bcc=&su=&body=','_blank');return false;">dmitry@baikal.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">George Stephanos <<a href="mailto:gaf.stephanos@gmail.com" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=gaf.stephanos@gmail.com&cc=&bcc=&su=&body=','_blank');return false;">gaf.stephanos@gmail.com</a>> wrote:<br>

<br>
> > Ah, well, strcmp comes from the C library your compiler uses. wcsncmp can<br>
> > only come from msvcrt. When compiling for Wine, this can result in mixing C<br>
> > runtime libraries, and hilarity can result.<br>
</div>...<br>
<div class="im">> Perhaps I could just use memcmp?<br>
<br>
</div>Use lstrcmpW/lstrcmpiW for unicode string comparisons, and lstrcmpA/lstrcmpiA<br>
for ANSI strings (you can't use glibc ones because of locale differencies),<br>
they are kernel32 exports, and exist in all Windows versions.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dmitry.<br>
</font></span></blockquote></div><br></div><div class="gmail_extra" style>Well I do need the functions to be boundable by length, or else I'd need to do some copying.</div><div class="gmail_extra" style>I'm going to post the updated patch with memcmp until a better solution comes up.</div>
</div>