Hi Martin, > The latest version looks correct to me too, but I think it would crash > if the final node in the chain has the _WSNF_JOIN flag. If this is > supposed to be impossible,
Yes, that's right: the _WSNF_JOIN flag indicates that this node is to be joined with the one that follows it, so the next pointer is guaranteed to be non-NULL. Regards, Sergey