Simple dynamic array
This commit is contained in:
16
include/darr.h
Normal file
16
include/darr.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef D_ARR_H
|
||||
#define D_ARR_H
|
||||
|
||||
#include "aliases.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
#define INVALID_IDX -1
|
||||
|
||||
typedef struct darr darr_t;
|
||||
|
||||
bool darr_init(darr_t **darr);
|
||||
i64 darr_add(darr_t **darr, void *item);
|
||||
void **darr_get_items(darr_t *darr);
|
||||
void darr_free(darr_t **darr);
|
||||
|
||||
#endif // !D_ARR_H
|
Reference in New Issue
Block a user