Go to the source code of this file.
◆ __attribute__()
int __attribute__ |
( |
(weak) |
| ) |
|
p1 and p2 are the same memory? easy peasy! bail out
Definition at line 3 of file memcmp.c.
26 for(i = 0; (i < n) && (*(
const uint8_t*)p1 == *(
const uint8_t*)p2);
27 i++, p1 = 1 + (
const uint8_t*)p1, p2 = 1 + (
const uint8_t*)p2)
33 return (i == n) ? 0 : (*(
const uint8_t*)p1 - *(
const uint8_t*)p2);