Favorite Quotes or Responses on C Board
I have to tell you that this board is a great source of laughs and chuckles. In keeping with that I think we should post some of our favorite quotes or responses to questions. I'll go first:
Quote:
File input
I have been using fgets() to read lines of a file I have and store them in a linked list. This has been working very well but after the last line I seem to end up with "x(smiley face)>" in the list. I have checked and this string does indeed result from the last call to fgets before EOF. I have used a hex editor to check the file and at the end of the last line is just the usual 0D 0A. What is going on here?
Quote:
Originally Posted by quzah
Right there. See that spot in your code? That's what you did wrong.
And of course in my tag line:
Quote:
Originally Posted by anduril462
Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old. Programming is not about typing, it's about problem solving.