2022-07-23 00:19:12 +00:00
|
|
|
#ifndef TELODENDRIA_ARRAY_H
|
|
|
|
#define TELODENDRIA_ARRAY_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
typedef struct Array Array;
|
|
|
|
|
|
|
|
extern Array *
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayCreate(void);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern size_t
|
2022-07-25 19:25:06 +00:00
|
|
|
ArraySize(Array * array);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern void *
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayGet(Array * array, size_t index);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern int
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayInsert(Array *, void *value, size_t index);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern int
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayAdd(Array * array, void *value);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern void *
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayDelete(Array * array, size_t index);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern void
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayFree(Array * array);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
extern int
|
2022-07-25 19:25:06 +00:00
|
|
|
ArrayTrim(Array * array);
|
2022-07-23 00:19:12 +00:00
|
|
|
|
|
|
|
#endif
|