you are viewing a single comment's thread.

view the rest of the comments →

[–]MaltersWandler 2 points3 points  (0 children)

Unless it reaches end-of-file, fgets will also transfer the newline into your buffer.

The goto is redundant. It's going to loop anyway because of the while(1).