top | item 4024331

(no title)

basugasubaku | 13 years ago

Your get_tail_child always returns NULL

  for (tail_ch = head_ch; tail_ch; tail_ch = tail_ch->next);

  return tail_ch;

discuss

order

jws|13 years ago

Well spotted!

Going to want to add a test case with more than one child at a time. I think as is it loses all but the most recent child.