S
Simon Biber
Roman said:while ( fgets(buf, sizeof(buf), fp ) != (char*) 0 )
What's the special reason to compare result with 0 (casting to char pointer)
rather than simply with NULL?
There is no reason. This code is silly. Just use NULL.
Also, there is no need for parentheses around buf in `sizeof buf'. Using
parentheses makes one think that it is a type whose size is being
tested, but in this case it is just an object.