I\'m trying to compare two strings. One stored in a file, the other retrieved from the user (stdin).
Here is a sample program:
int main() { char
fgets appends the newline to the string, so you'll end up with bob\n\0 which isn't the same as bob\0.
fgets
bob\n\0
bob\0