From 6dd0c4747aa57227b5898fc639e3f2b643ce013c Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 15 Apr 2024 22:16:28 +0200 Subject: feat: Remove C implementation --- lib/list.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 lib/list.h (limited to 'lib/list.h') 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 - -#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); -- cgit v1.2.3