Code: Select all
Import "ucrt.lib"
strnicmp(String1$, String2$, Count)
EndImport
Thanks.
Code: Select all
Import "ucrt.lib"
strnicmp(String1$, String2$, Count)
EndImport
Code: Select all
ImportC "oldnames.lib"
strnicmp.i(String1.p-Ascii, String2.p-Ascii, Count)
EndImport
Debug strnicmp("abcx213e12", "ABCY9789", 2)
Debug strnicmp("abcx213e12", "ABCY9789", 5)
Debug strnicmp("bbcx213e12", "ABCY9789", 1)
Code: Select all
ImportC "ucrt.lib"
CompilerIf #PB_Compiler_32Bit
strnicmp(String1.p-utf8, String2.p-utf8, Count) As "__strnicmp"
CompilerElse
strnicmp(String1.p-utf8, String2.p-utf8, Count) As "_strnicmp"
CompilerEndIf
EndImport
Debug strnicmp("abcx213e12", "ABCY9789", 2)
Debug strnicmp("abcx213e12", "ABCY9789", 5)
Debug strnicmp("bbcx213e12", "ABCY9789", 1)Code: Select all
ImportC "ucrt.lib"
_strnicmp(String1.p-utf8, String2.p-utf8, Count)
EndImport
Macro strnicmp(a,b,c) : _strnicmp(a,b,c) : EndMacro
Debug strnicmp("abcx213e12", "ABCY9789", 2)
Debug strnicmp("abcx213e12", "ABCY9789", 5)
Debug strnicmp("bbcx213e12", "ABCY9789", 1)