Embedded TCP/IP stack: fnet_memcmp

FNET

fnet_int32_t fnet_memcmp ( const void *  src1,
const void *  src2,
fnet_size_t  count 
)

Compares memory areas.

Parameters
src1Pointer to the memory buffer to compare.
src2Pointer to the memory buffer to compare.
countNumber of bytes to compare.
Returns
This function returns zero if two buffers are identical, otherwise returns 1.

This function compares the first n bytes of the memory buffer pointed by src1 to the first count bytes pointed by src2, returning zero if they all match, otherwise returns 1.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net