I ran peek and I'm all good in that department. However, my images are not sizing appropriately. Here's what I have. I've talked through this multiple times and I can't seem to figure it out. Please help:

// iterate over infile's scanlines

[code removed per academic honesty guidelines]

1 Answer 1


You forgot one important step. After you generate each horizontal line, you correctly fseek back to the beginning of the input line to repeat the process. However, after you have done this n times, you need to also move FORWARD in the input file to the next line to be processed.

Put an fseek() just after and outside the m loop and at the bottom of the i loop. That should reposition the input pointer to the beginning of the next line for scaling up.

But if you really want to punch your laptop, just throw it out the window instead. Let me know when, so I can catch it. ;-)

If this answers your question, please click on the check to accept. Let's keep up on forum housekeeping. ;-)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .