Is the "wc" command buggy? If I run it on a three-line text file without a '\n' in the third line, the computer will say that the file contains only two lines. Just for fun, I wrote my own "wc" command that seems to work correctly partly because it calls fgets.
Last edited: