Define string_is_not_equal
This commit is contained in:
parent
897c1654ab
commit
df1979be12
|
@ -48,6 +48,11 @@ static INLINE bool string_is_equal(const char *a, const char *b)
|
|||
return (*(const unsigned char*)a - *(const unsigned char*)b) == 0;
|
||||
}
|
||||
|
||||
static INLINE bool string_is_not_equal(const char *a, const char *b)
|
||||
{
|
||||
return !string_is_equal(a, b);
|
||||
}
|
||||
|
||||
#define string_is_not_equal_fast(a, b, size) (memcmp(a, b, size) != 0)
|
||||
#define string_is_equal_fast(a, b, size) (memcmp(a, b, size) == 0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue