aboutsummaryrefslogtreecommitdiff
path: root/Converter/includes/array.h
blob: 7f96e579f7ee756c0cc9f4c9a8a5087b4a98fe18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __ARRAY_H_
#define __ARRAY_H_

#include <stdlib.h>

typedef struct
{
  void **data;
  size_t sz_allocated;
  size_t sz_used;
} array_t;

void array_init(array_t **arr);
void array_append(array_t *arr, void *item);
void *array_read(array_t *arr, int index);

#endif // __ARRAY_H_