Originally Posted by
jimblumberg
The crash problem is probably line 20. You probably should re-read your documentation for fgets() and be sure you provide the correct values for the parameters. Look carefully at buffer.
However your if statement is probably logically wrong as well. Watch out for all those negations when using the OR operator.
Jim