src/slist.h
static inline void
slist_insert_tail(struct slist *list, struct slist_node *node)
{
    node->next = NULL;

    if (slist_empty(list)) {
        list->first = node;
    } else {
        list->last->next = node;
    }

    list->last = node;
}
/*
 * Insert a node at the tail of a list.
 */
Insert a node at the tail of a list.
Insert a node at the tail of a list .
static inline void
slist_insert_tail(struct slist *list, struct slist_node *node)
{
    node->next = NULL;
    if (slist_empty(list)) {
        list->first = node;
    } else {
        list->last->next = node;
    }
    list->last = node;
}
static inline void slist_insert_tail ( struct slist * list , struct slist_node * node ) { node -> next = NULL ; if ( slist_empty ( list ) ) { list -> first = node ; } else { list -> last -> next = node ; } list -> last = node ; }
Insert a node at the tail of a list.
Insert a node at the tail of a list .