diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-15 22:16:28 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-04-15 22:16:28 +0200 |
commit | 6dd0c4747aa57227b5898fc639e3f2b643ce013c (patch) | |
tree | e43ee077469b5c28fcf46dba51eb03e53214fad5 /lib/list.h | |
parent | 6ed576974dec969ad2745a451a6f680a3cdbcfc4 (diff) | |
download | dict-6dd0c4747aa57227b5898fc639e3f2b643ce013c.tar.gz dict-6dd0c4747aa57227b5898fc639e3f2b643ce013c.tar.bz2 dict-6dd0c4747aa57227b5898fc639e3f2b643ce013c.zip |
feat: Remove C implementation
Diffstat (limited to 'lib/list.h')
-rw-r--r-- | lib/list.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/list.h b/lib/list.h deleted file mode 100644 index 18bc423..0000000 --- a/lib/list.h +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once -#include <stdlib.h> - -#define LIST_SIZE_FACTOR 1.5 -struct list -{ - unsigned int size; - unsigned int allocated_size; - void** list; -}; - -typedef struct list LIST; - -/** -* Add an item to a list -* @list: array list structure. -* @item: item to be added to the list. -*/ -LIST* list_add(LIST* list, void* item); - -/** -* Remove an item from a given list -* @list: array list structure. -* @pos: position of item to be removed. -*/ -LIST *list_remove(LIST *list, unsigned int pos); - -void list_free(LIST* list); - -void *list_get(LIST *list, unsigned int index); |