If I don't typecast I get this error:
Code:
'=' : cannot convert from 'void *' to 'long *'
for this function:
Code:
long *TempValue;
TempValue = (long *)calloc(*n, sizeof(long));
and later when I try putting values in there I get another error message:
Code:
fread' : cannot convert parameter 1 from 'long' to 'void *'
from this call:
Code:
fread(TempValue[i], sizeof(long), 1, ptr);
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.