libcproject
C static library easier to use than libc (C standard library).
|
Go to the source code of this file.
Data Structures | |
struct | linked_list |
Linked list data structure. More... | |
struct | linked_list_node |
Linked list node data structure. More... | |
Functions | |
struct linked_list * | linked_list_initialization () |
Linked list initialization. More... | |
struct linked_list_node * | linked_list_add_in_head (struct linked_list *list, void *new_value) |
Add a new node in the head of the linked list. More... | |
void | linked_list_delete_in_head (struct linked_list *list) |
Delete node in the head of the linked list. More... | |
struct linked_list_node * | linked_list_add_after_last (struct linked_list *list, void *new_data) |
Add a new node in the tail of the linked list. More... | |
struct linked_list * | linked_list_reverse (struct linked_list *list) |
Reverse the linked list by creating a new one. More... | |
void | linked_list_reverse_mutate (struct linked_list *list) |
Reverse the linked list by mutating it. More... | |
void | linked_list_free (struct linked_list *list) |
Frees the linked list. More... | |
struct linked_list |
Data Fields | ||
---|---|---|
struct linked_list_node * | head | |
size_t | length |
struct linked_list_node |
Data Fields | ||
---|---|---|
void * | data | |
struct linked_list_node * | next |
struct linked_list* linked_list_initialization | ( | ) |
Linked list initialization.
struct linked_list_node* linked_list_add_in_head | ( | struct linked_list * | list, |
void * | new_value | ||
) |
Add a new node in the head of the linked list.
list | |
new_value |
void linked_list_delete_in_head | ( | struct linked_list * | list | ) |
Delete node in the head of the linked list.
list |
struct linked_list_node* linked_list_add_after_last | ( | struct linked_list * | list, |
void * | new_data | ||
) |
Add a new node in the tail of the linked list.
list | |
new_data |
struct linked_list* linked_list_reverse | ( | struct linked_list * | list | ) |
Reverse the linked list by creating a new one.
list |
void linked_list_reverse_mutate | ( | struct linked_list * | list | ) |
Reverse the linked list by mutating it.
list |
void linked_list_free | ( | struct linked_list * | list | ) |
Frees the linked list.
list |