can anybody tell me what is wrong with this code block. When i use check50 it fails all three objectives.
h_buffer: header buffer s_buffer: sample buffer
// TODO: Copy header from input file to output file uint8_t h_buffer[HEADER_SIZE]; fread(h_buffer,sizeof(uint8_t),HEADER_SIZE,input); fwrite(h_buffer,sizeof(uint8_t),HEADER_SIZE,output); // TODO: Read samples from input file and write updated data to output file int16_t s_buffer; while((fread(&s_buffer,sizeof(int16_t),1,input))!=EOF) { s_buffer=s_buffer*factor; fwrite(&s_buffer,sizeof(int16_t),1,output); }