ASCOT5
|
Simple linked list. More...
Go to the source code of this file.
Functions | |
void | list_int_create (list_int_node **list) |
Create an empty list. | |
void | list_int_free (list_int_node **list) |
Deallocate this list and all lists it is linked to. | |
void | list_int_add (list_int_node *list, int data) |
Add new node to the end of the chain. | |
int | list_int_get (list_int_node *list, int index) |
Retrieve the data stored in a list node. | |
int | list_int_size (list_int_node *list) |
Get list size. | |
Simple linked list.
Linked list where each node stores an int data and a pointer to the next node in chain.
Definition in file list.c.
void list_int_create | ( | list_int_node ** | list | ) |
void list_int_free | ( | list_int_node ** | list | ) |
void list_int_add | ( | list_int_node * | list, |
int | data ) |
int list_int_get | ( | list_int_node * | list, |
int | index ) |
int list_int_size | ( | list_int_node * | list | ) |