Data Structures Lerax  v3.0-104-ge031
Opinionated Data Structures & Algorithms
Loading...
Searching...
No Matches
list-gen.h File Reference
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  ListGen

Typedefs

typedef struct ListGen ListGen

Functions

ListGenlist_gen_create ()
 Creates a new generic list.
ListGenlist_gen_copy (ListGen *l)
 Creates a copy of the list.
bool list_gen_empty (ListGen *l)
 Checks if the list is empty.
ListGenlist_gen_insert (ListGen *l, void *data)
 Inserts data into the list.
ListGenlist_gen_insert_with_key (ListGen *l, int key, void *data)
 Inserts data with a key into the list.
ListGenlist_gen_search (ListGen *l, void *data)
 Searches for data in the list.
ListGenlist_gen_search_by_key (ListGen *l, int key)
 Searches for a key in the list.
ListGenlist_gen_remove (ListGen *l, void *data)
 Removes data from the list.
ListGenlist_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.
ListGenlist_gen_concat (ListGen *l1, ListGen *l2)
 Concatenates two lists.
void list_gen_println_reverse (ListGen *l)
 Prints the list in reverse order.

Typedef Documentation

◆ ListGen

typedef struct ListGen ListGen

    Copyright 2025 Manoel Vilela

    Author: Manoel Vilela
   Contact: manoel_vilela@engineer.com

Organization: ITA