Pop the node from the end of the list.
| 72 | |
| 73 | // Pop the node from the end of the list. |
| 74 | static inline struct list_node *list_pop(struct list_node *head) |
| 75 | { |
| 76 | struct list_node *last = list_last(head); |
| 77 | if (last) |
| 78 | list_remove(last); |
| 79 | return last; |
| 80 | } |
| 81 | |
| 82 | // Get the number of list elements. |
| 83 | size_t list_length(const struct list_node *head); |