include/slib/list.h
static inline list_head_t *
list_pop_front(list_head_t *list)
{
    list_head_t *front = list->next;

    list_remove(front);
    return front;
}
/* Removes the front element from 'list' and returns it.
 * Undefined behavior if 'list' s empty before removal. */
Removes the front element from 'list' and returns it.
Undefined behavior if 'list' s empty before removal.
Removes the front element from ' list ' and returns it . Undefined behavior if ' list ' s empty before removal .
static inline list_head_t *
list_pop_front(list_head_t *list)
{
    list_head_t *front = list->next;
    list_remove(front);
    return front;
}
static inline list_head_t * list_pop_front ( list_head_t * list ) { list_head_t * front = list -> next ; list_remove ( front ) ; return front ; }
Removes the front element from 'list' and returns it.
Removes the front element from ' list ' and returns it .