Add list.c

This commit is contained in:
2023-01-02 21:48:06 +01:00
parent 4e6930692e
commit c7488b0f59
5 changed files with 225 additions and 18 deletions

19
src/lib/list.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef SESIMOS_LIST_H
#define SESIMOS_LIST_H
void *list_create(int elem_size, int init_elem_n);
unsigned int list_size(void *list_ptr);
void *list_insert(void *list_ptr, void *elem, int n);
void *list_append(void *list_ptr, void *elem);
void *list_remove(void *list_ptr, int n);
void *list_clear(void *list_ptr);
void list_free(void *list_ptr);
#endif //SESIMOS_LIST_H