>at least one authority -- the GNU C Library Manual --
>suggests that using EOF macro is not reccommended:
The only reason they don't recommend the EOF macro is because it doesn't differentiate between errors and an actual end of file -- the same behavior is exhibited in the return value of fgets(), so you're not any better off using that as a loop condition. (And I suppose the implication is that GNU also doesn't recommend checking the return value of fgets() for the same reason.)
John A
1,896
Vampirical Lurker
Team Colleague
jephthah
1,888
Posting Maven
John A
1,896
Vampirical Lurker
Team Colleague
BestJewSinceJC
700
Posting Maven
jephthah
1,888
Posting Maven
John A
commented:
Big Endian.
+18
Aia
1,977
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.