I'm stuck with recovery program in the pset4. My program recovers 8 files. I can not find out what is wrong with it...

Here is the link on Dropbox to the code I'm using. If you notice any error please let me know at least the direction in which I can think to solve this! :)

1 Answer 1


Your do while loop only runs 1 iteration. Check the condition.

  • Indeed! I changed while condition to (!feof(inptr)); and now it works! Thanks a lot! :D
    – Alex Zamai
    Mar 2, 2015 at 6:35

You must log in to answer this question.

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