What's the difference between this:
void copydata(void *, void *, size_t);
and this:
void *copydata(void *, void *, size_t);
I use pointer functions when they must return a pointer, for example:
char *myName(int i)
{
switch (i) { case 0: return "Jack"; break; default: return "Adam"; }
}
but in the "void *copydata" example, the function doesn't have to return anything, and it compiles correctly in both ways, and the resulting asm code appears to be the same in both cases.