#include <corecrt_internal_mbstring.h>
#include <locale.h>
#include <string.h>
Go to the source code of this file.
◆ _mbscmp_l()
Definition at line 47 of file mbscmp.cpp.
52{
53 unsigned short c1, c2;
55
56
59 if (_loc_update.GetLocaleT()->mbcinfo->ismbcodepage == 0)
60 return strcmp((
const char *)
s1, (
const char *)
s2);
61
62 for (;;) {
63
66 c1 = ( (*
s1 ==
'\0') ? 0 : ((c1<<8) | *
s1++) );
67
70 c2 = ( (*
s2 ==
'\0') ? 0 : ((c2<<8) | *
s2++) );
71
72 if (c1 != c2)
73 return (c1 > c2) ? 1 : -1;
74
75 if (c1 == 0)
76 return 0;
77
78 }
79}
int strcmp(const char *String1, const char *String2)
#define _ismbblead_l(_c, p)
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
◆ int()
◆ s2
Initial value:{
int __cdecl _mbscmp_l(const unsigned char *s1, const unsigned char *s2, _locale_t plocinfo)
Definition at line 83 of file mbscmp.cpp.
Referenced by _mbscmp_l().