I read in the right number of bits but get the failure when I try to read them.
My memory has been properly allocated. The code compiles with no errors or warnings.
if ((mfilters[filtnum].filters[j] = (float *)calloc((12 + 3*j) , sizeof(float))) == NULL)
printf("calloc failure\n");
else
num = fread(mfilters[filtnum].filters[j], 1, (12 + 3*j)*sizeof(float), fp);
printf("%d %d \n",j, num);
printf("%f\n", mfilters[0].filters[0][0]);
My memory has been properly allocated. The code compiles with no errors or warnings.
if ((mfilters[filtnum].filters[j] = (float *)calloc((12 + 3*j) , sizeof(float))) == NULL)
printf("calloc failure\n");
else
num = fread(mfilters[filtnum].filters[j], 1, (12 + 3*j)*sizeof(float), fp);
printf("%d %d \n",j, num);
printf("%f\n", mfilters[0].filters[0][0]);