Skip to main content

Questions tagged [feof]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Lab 4 using feof() function

I am getting problems with check50. My program differs from solution only in while condition, where I am using feof() function instead of fread(). feof() function returns a non-zero value when End-of-...
step00's user avatar
  • 3
0 votes
1 answer
151 views

Pset4 Recover, help with writing images correctly

I can create 49 images inside of my loop, but I'm missing something when I write to file. The images are only partly showing. I watched the video three times where Brian explains how to approach this, ...
JackJack's user avatar
2 votes
1 answer
1k views

pset4 recover I'm confused with fread

I'm pretty confused with recover. I've seen in previous posts that it is wrong to use feof , but the problem is that when I use fread the images won't show. However, when I use feof I can see all ...
Belen's user avatar
  • 87
1 vote
1 answer
2k views

What is the difference in behavior between fread and feof?

For pset4's recover.c code, I noticed the following: when I set my while loop to be while (!feof(inptr)), all the images get recovered, including the last, but check50 throws an error (TODO) when ...
Richard's user avatar
  • 166