diff options
Diffstat (limited to 'list.h')
-rw-r--r-- | list.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#ifndef DEF_LISTH +#define DEF_LISTH + +#include <stdlib.h> + +struct long_list { + long* list; + size_t alloc_size; + size_t length; +}; + +struct long_list* long_list_init(size_t size); + +void long_list_free(struct long_list* list); + +void long_list_add(struct long_list* list, long value); + +long long_list_get(struct long_list* list, size_t index); + +void long_list_set(struct long_list* list, size_t index, long value); + +#endif |