aboutsummaryrefslogtreecommitdiff
path: root/Converter/includes/array.h
blob: 003b1fd903d22d6296681fa3fadcb0f73a8d5c8d (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_