Added int list for joker pooling

This commit is contained in:
MeirGavish
2025-08-07 19:47:55 +03:00
parent 742114792d
commit f84268c14d
2 changed files with 80 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef LIST_H
#define LIST_H
#include <stdbool.h>
typedef struct IntList
{
int* _array;
int size;
int allocated_size;
} IntList;
IntList *int_list_new(int init_size);
void int_list_destroy(IntList **list);
bool int_list_add(IntList *list, int value);
bool int_list_remove(IntList *list, int index);
int int_list_get(IntList *list, int index);
#endif