planarbot/arraylist.h

15 lines
307 B
C
Raw Normal View History

2022-11-01 22:09:32 +01:00
#ifndef ARRAY_LIST
#define ARRAY_LIST
typedef struct arraylist {
int capacity;
int size;
void **items;
} ArrayList;
ArrayList * list();
void * get_list(ArrayList *this, int index);
void add_list(ArrayList *this, void *item);
void free_listitems(ArrayList *this);
void free_list(ArrayList *this);
#endif