I've got the header files outputting correctly, and now I'm struggling to understand what exactly needs to be done to accomplish the horizontal resize.
I believe that I need a loop to fwrite RGBTRIPLE to the outfile n (scale factor) times, but implementing a for loop for fwrite causes the output file to return an "invalid or unsupported image format" message.
Before attempting a loop for the fwrite function, I just set the number of blocks in the fwrite function to be "n" rather than 1, but that resulted in an image made up of random colors/blocks.
I'm really struggling with this pset, so any guidance would be much appreciated.
edited out code