Hacker News new | ask | show | jobs
by fr0sty 4993 days ago
That traversal doesn't traverse. It just skip list to entry->next and would keep resetting.

You could do something like this instead:

  link = &((*link)->next);
1 comments

Yes and then to set it would be

  *link = (*link)->next;