Guardian C Library Calls Reference Manual

memcmp
3-118 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
memcmp
The memcmp function performs an unsigned byte comparison of two blocks of memory.
block1
points to the first block to compare.
block2
points to the second block to compare.
cmp_size
is the number of bytes to compare.
Return Value
is zero if the two blocks are equal, a negative value if *block1 is less than *block2,
or a positive value if *block1 is greater than *block2.
Usage Guidelines
The memcmp function treats the two blocks as arrays of unsigned char.
#include <stringh>
int memcmp(const void *block1, const void *block2, size_t
cmp_count);