include/slib/list.h
static inline list_head_t *
list_pop_back(list_head_t *list)
{
    list_head_t *back = list->prev;

    list_remove(back);
    return back;
}
/* Removes the back element from 'list' and returns it.
 * Undefined behavior if 'list' is empty before removal. */
Removes the back element from 'list' and returns it.
Undefined behavior if 'list' is empty before removal.
Removes the back element from ' list ' and returns it . Undefined behavior if ' list ' is empty before removal .
static inline list_head_t *
list_pop_back(list_head_t *list)
{
    list_head_t *back = list->prev;
    list_remove(back);
    return back;
}
static inline list_head_t * list_pop_back ( list_head_t * list ) { list_head_t * back = list -> prev ; list_remove ( back ) ; return back ; }
Removes the back element from 'list' and returns it.
Removes the back element from ' list ' and returns it .