just as the title says how to compare between memory addresses's contents?,
my function will get two memory pointers and i want to compare their first "len" from what they're pointing to
i'm getting here invalid use of void * when i compile
int my_bcmp (const void *r1, const void *r2)
{
int i;
for(i=0; i<LENGTH && i<len; i++)
if(*b1+i != *b2+i)
return -1;
return 0;
}