hey, i have a problem trying to figure out what i'm doing wrong with memcpy,
i get the following to errrors when i try to run this code.
a4.c:222: error: incompatible type for argument 1 of `memcpy'
a4.c:222: error: incompatible type for argument 2 of `memcpy'
memArray is an array of
memRec structures.
Code:
for(i=foundIndex; i<memLoc; i++) {
memcpy(memArray[i],memArray[i+1],sizeof(memRec));
}
Could someone please tell me why my first and second arguments are incompatible types for memcpy and what they should be instead.
Thanx a heap