X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Farray_append.h;fp=src%2Fclient%2Farray_append.h;h=b7cc7ef5cb247627e97c96cdd0e1d3e122921460;hb=539f4419afa0966d67b341dc6b30a6174bd3f844;hp=0000000000000000000000000000000000000000;hpb=be8c57c7e1de5962913f849b862faae01bead264;p=plomrogue diff --git a/src/client/array_append.h b/src/client/array_append.h new file mode 100644 index 0000000..b7cc7ef --- /dev/null +++ b/src/client/array_append.h @@ -0,0 +1,23 @@ +/* src/client/array_append.h + * + * Small memory management helper. + */ + +#ifndef ARRAY_APPEND_H +#define ARRAY_APPEND_H + +#include /* size_t */ +#include /* uint32_t */ + + + +/* Append to array pointed to by "ptr_old_array" of "old_n" elements of + * "region_size" "new region". + */ +extern void array_append(uint32_t old_n, size_t region_size, void * new_region, + void ** ptr_old_array); + + + +#endif +