dict @ 78b0ba12073b0940541d91a7568e8b7ada572848

 1#pragma once
 2#include <stdlib.h>
 3
 4#define LIST_SIZE_FACTOR 1.5
 5struct list {
 6    unsigned int size;
 7    unsigned int allocated_size;
 8    void** list;
 9};
10
11typedef struct list LIST;
12
13/**
14* Add an item to a list
15* @list: array list structure.
16* @item: item to be added to the list.
17*/
18LIST* list_add(LIST* list, void* item);
19
20/**
21* Remove an item from a given list
22* @list: array list structure.
23* @pos: position of item to be removed.
24*/
25LIST *list_remove(LIST *list, unsigned int pos);
26
27void list_free(LIST* list);
28
29void *list_get(LIST *list, unsigned int index);