- Function
Compare two memory areas.
- Header
- Declaration
int __fastcall__ memcmp (const void* p1, const void* p2, size_t count);
- Description
memcmp
comparescount
bytes from the memory area pointed to byp1
into the memory area pointed to byp2
. It returns a value that is less than zero ifp1
is less thanp2
, zero ifp1
is the same asp2
, and a value greater than zero ifp1
is greater thanp2
.- Limits
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- Availability
ISO 9899
- See also
- Example
None.