src/list.c
/** insert element at the head of the list */
insert element at the head of the list
insert element at the head of the list
void dllist_insert_head(dllist_node_st **head, dllist_node_st *item)
{
    item->prev = NULL;
    if (*head) {
        (*head)->prev = item;
    }
    item->next = *head;
    *head = item;
}
void dllist_insert_head ( dllist_node_st * * head , dllist_node_st * item ) { item -> prev = NULL ; if ( * head ) { ( * head ) -> prev = item ; } item -> next = * head ; * head = item ; }
insert element at the head of the list
insert element at the head of the list