|
Data Structures Lerax
v3.0-104-ge031
Opinionated Data Structures & Algorithms
|
#include <stdbool.h>#include <stddef.h>Go to the source code of this file.
Data Structures | |
| struct | ListGen |
Typedefs | |
| typedef struct ListGen | ListGen |
Functions | |
| ListGen * | list_gen_create () |
| Creates a new generic list. | |
| ListGen * | list_gen_copy (ListGen *l) |
| Creates a copy of the list. | |
| bool | list_gen_empty (ListGen *l) |
| Checks if the list is empty. | |
| ListGen * | list_gen_insert (ListGen *l, void *data) |
| Inserts data into the list. | |
| ListGen * | list_gen_insert_with_key (ListGen *l, int key, void *data) |
| Inserts data with a key into the list. | |
| ListGen * | list_gen_search (ListGen *l, void *data) |
| Searches for data in the list. | |
| ListGen * | list_gen_search_by_key (ListGen *l, int key) |
| Searches for a key in the list. | |
| ListGen * | list_gen_remove (ListGen *l, void *data) |
| Removes data from the list. | |
| ListGen * | list_gen_remove_by_key (ListGen *l, int key) |
| Removes a key from the list. | |
| void | list_gen_free (ListGen *l) |
| Frees the memory allocated for the list. | |
| void | list_gen_println (ListGen *l) |
| Prints the list. | |
| ListGen * | list_gen_concat (ListGen *l1, ListGen *l2) |
| Concatenates two lists. | |
| void | list_gen_println_reverse (ListGen *l) |
| Prints the list in reverse order. | |
| typedef struct ListGen ListGen |
Copyright 2025 Manoel Vilela
Author: Manoel Vilela
Contact: manoel_vilela@engineer.com
Organization: ITA