if ( fgets( line, sizeof(line), stdin ) == (char*) 0 )...
I don\'t understand what this line does,anyone knows?
(char*) 0
Is not a null character, but a pointer to a character at address 0.
A character containing the value 0 would be:
(char) 0