This repository has been archived on 2026-02-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
cieter/include/cieter_dynarray.h

19 lines
498 B
C

#ifndef CIETER_DYNARRAY
#define CIETER_DYNARRAY
#include <stdlib.h>
#include <string.h>
typedef struct dyn_array CieterDynArray;
CieterDynArray *cieter_dynarray_init(size_t initial_capacity);
void cieter_dynarray_add(CieterDynArray *da, const char * s);
void cieter_dynarray_free(CieterDynArray *da);
/**
* Convert a DynArray into an array by freeing all its surrounding components
* and returning the underlying array pointer.
*/
char **cieter_dynarray_convert(CieterDynArray *da);
#endif