For memecmp(), the third parameter is size_t(unsigned). But when we pass third parameter as -1 returns always 0, eventhough the memory block pointed by first and second parameters are different?
What are you comparing? memcmp()
returns 0
if the contents in the two memory blocks are equal.