Go to the source code of this file.
Functions | |
void | list_init (List *liste, void(*detruire)(void *donnee), int(*corresp)(const void *val1, const void *val2)) |
Initialize the linked list. This function should be called first. | |
void | list_destroy (List *liste) |
Destroy the linked list. This function free all allocated memory used by the list. | |
int | list_ins_next (List *liste, ListElmt *element, const void *donnee) |
Insert a new element into the linked list. | |
int | list_rem_next (List *liste, ListElmt *element, void **donnee) |
Remove an element from the linked list. | |
ListElmt * | list_find (List *liste, ListElmt *from, void *data, ListElmt **prec) |
Search an element into the linked list. |
Definition in file list.c.
|
Destroy the linked list. This function free all allocated memory used by the list.
Definition at line 40 of file list.c. References List_::detruire, list_rem_next(), and list_size. Referenced by chtbl_destroy(). |
|
Search an element into the linked list.
Definition at line 231 of file list.c. References List_::corresp, list_data, list_head, and list_next. Referenced by chtbl_remove(). |
|
Initialize the linked list. This function should be called first.
Definition at line 21 of file list.c. References List_::corresp, List_::detruire, List_::queue, List_::taille, and List_::tete. Referenced by chtbl_init(). |
|
Insert a new element into the linked list.
Definition at line 69 of file list.c. References ListElmt_::donnee, list_size, List_::queue, ListElmt_::suivant, List_::taille, and List_::tete. Referenced by chtbl_insert(), and stack_push(). |
|
Remove an element from the linked list.
Definition at line 145 of file list.c. References ListElmt_::donnee, list_size, List_::queue, ListElmt_::suivant, List_::taille, and List_::tete. Referenced by chtbl_remove(), list_destroy(), and stack_pop(). |