>>682
void concat(struct node *p, struct node *q)
{
if( ! p || ! q ) return;
while( p-next ) p = p->next;
p->next = q;
}