Look at the wiki page.
s = s->next is not going to append anything to the end of an existing list.