If I don't typecast I get this error:
for this function:
'=' : cannot convert from 'void *' to 'long *'
and later when I try putting values in there I get another error message:
TempValue = (long *)calloc(*n, sizeof(long));
from this call:
fread' : cannot convert parameter 1 from 'long' to 'void *'
and I know I put & everywhere I'm not supposed to. I don't understand very well where to and not to put it. I'm still trying to figure it all out.
fread(TempValue[i], sizeof(long), 1, ptr);