Embedded TCP/IP stack  4.7.0

◆ fnet_memcmp()

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
- Zero if two buffers are identical.
  • Difference between the first differing bytes.

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, difference between the first differing bytes.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net