I have it upto here and now it does resize, but the image is off. Having a hard time trying to figure out where its going wrong since debugger etc doesnt reveal much info on files and arrays.
Think of each pixel as something more concrete (you should check the documentation format in the header file and write things down in a paper if you're having a hard time understanding this). If it was a letter how would you make a program that reads a letter "a" and spits "a" n times? This fseek, I think you can imagine something like using a text editor without a mouse, in the sense of moving the cursor using the keyboard.
fseek(fileprt, offset, from)
This is the way you tell C to move the cursor inside a file, which fileptr pointer is pointing at, without reading anything. The offset is how many units do you want to move it, you should use the sizeof function to jump into "words" (which are pixels in this case, words don't have the same size, but I think you get the idea). The "from" parameter its the starting point, if you call the function
fseek(fileptr, sizeof(word), SEEK_SET) this moves the cursor after the first word from the start of a file (SEEK_SET). Then if you call
fseek(fileptr, 4*sizeof(word), SEEK_CUR) afterwards, it would move 4 words after the current (SEEK_CUR parameter) cursor position, so your cursor would be right after the fifth word. I don't know if this is clear, or if this what you were asking.