10 if (!list)
return NULL;
28 if (!list)
return false;
30 if (!node)
return false;
39 if (!list)
return false;
41 if (!node)
return false;
57 if (!list || !list->
head)
return false;
59 if (out_value) *out_value = node->
value;
69 for (
ll_node_t *cur = list->
head; cur; cur = cur->next, idx++) {
70 if (cur->value == value)
return idx;
76 return list ? list->
size : 0;
80 return !list || list->
size == 0;
bool ll_is_empty(const linked_list_t *list)
size_t ll_size(const linked_list_t *list)
size_t ll_find(const linked_list_t *list, int value)
void ll_reverse(linked_list_t *list)
bool ll_pop_front(linked_list_t *list, int *out_value)
bool ll_push_front(linked_list_t *list, int value)
void ll_destroy(linked_list_t *list)
bool ll_push_back(linked_list_t *list, int value)
linked_list_t * ll_create(void)
Singly-linked list of int.