hi, I'm trying to allocate some space with malloc to load a file as a character array, but I'm getting some weird data, the expected value of the first byte of the array is 0x49 ( "I" in the magic word in header) but I'm getting 0x0, 0x10 or 0x4C, this is what I wrote to get to allocate this data:
char* ID3Section = (char*)malloc(headerSize);
fread(ID3Section, headerSize, headerSize, song->fptr);
printf("data stored at: 0x%x\n", ID3Section);
printf("0x%x\n", ID3Section[0]);
return ID3Section;```