-
Notifications
You must be signed in to change notification settings - Fork 2
Memcmp
anatol edited this page Jul 13, 2021
·
1 revision
int32_t Memcmp(const void* p1 , const void* p2 , uint32_t size);
Equivalent of standard memcmp
. Compares the first size
characters of given arrays. The comparison is done lexicographically.
-
p1
: pointer to the first memory buffer to compare -
p2
: pointer to the second memory buffer to compare -
size
: number of bytes to examine
- Negative value if the first differing byte in
p1
is less than the corresponding byte inp2
. - 0 if all
size
bytes ofp1
andp2
are equal. - Positive value if the first differing byte in
p1
is greater than the corresponding byte inp2
.
- none