From the manpage (pubs.opengroup.org/onlinepubs/007908799/...): Upon successful completion, fgets() returns s. If the stream is at end-of-file, the end-of-file indicator for the stream is set and fgets() returns a null pointer. If a read error occurs, the error indicator for the stream is set, fgets() returns a null pointer and sets errno to indicate the error On end of file, it returns null, and if the file is less than 4096 characters, it would hit EOF on the first iteration, so isFgetsOK = YES would not be reached Sorry, misinterpreted... It returns null if the stream is at EOF when fgets is called, not if it reaches EOF during the call.
From the manpage (pubs.opengroup.org/onlinepubs/007908799/...): Upon successful completion, fgets() returns s. If the stream is at end-of-file, the end-of-file indicator for the stream is set and fgets() returns a null pointer. If a read error occurs, the error indicator for the stream is set, fgets() returns a null pointer and sets errno to indicate the error.
On end of file, it returns null, and if the file is less than 4096 characters, it would hit EOF on the first iteration, so isFgetsOK = YES; would not be reached. Sorry, misinterpreted... It returns null if the stream is at EOF when fgets is called, not if it reaches EOF during the call...
"In darkness it is me they dread." What is a *. Sorted command and why doesn't it work in my bash?
What is the most efficient way to fold a map? Why is the pond in my backyard not frozen when it is 5°F outside?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.