Telodendria/src/include/Array.h
2022-07-27 15:31:34 -04:00

35 lines
564 B
C

#ifndef TELODENDRIA_ARRAY_H
#define TELODENDRIA_ARRAY_H
#include <stddef.h>
typedef struct Array Array;
extern Array *
ArrayCreate(void);
extern size_t
ArraySize(Array * array);
extern void *
ArrayGet(Array * array, size_t index);
extern int
ArrayInsert(Array *, void *value, size_t index);
extern int
ArrayAdd(Array * array, void *value);
extern void *
ArrayDelete(Array * array, size_t index);
extern void
ArraySort(Array *, int (*compare) (void *, void *));
extern void
ArrayFree(Array * array);
extern int
ArrayTrim(Array * array);
#endif