I agree that gets() must be gotten rid of. Unless you give it an infinitely large buffer, it's always possible for the user to enter a line longer than the buffer.
Besides, is this:
really that much harder to type than this:Code:fgets(buffer, sizeof(buffer), stdin)
?Code:gets(buffer)
Linux rules!
If you used Linux, you wouldn't need to restart all the time!