Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • hey, I'm going through the code. Trying to understand it. Feel very noobish but I seem not to find the reason why the if-statement inside the loop erases the NULL at the end of the list if ( head->first != NULL) If it's there the travel loop will crash. Commented Nov 28, 2009 at 16:12
  • @klw: I just realized what you meant. Of course, you are 100% correct. Since head->first is already pointing to NULL the if ... else ... is completely useless. Commented Nov 28, 2009 at 16:39