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