1 /* src/client/array_append.h
3 * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
4 * or any later version. For details on its copyright, license, and warranties,
5 * see the file NOTICE in the root directory of the PlomRogue source package.
7 * Small memory management helper.
10 #ifndef ARRAY_APPEND_H
11 #define ARRAY_APPEND_H
13 #include <stddef.h> /* size_t */
14 #include <stdint.h> /* uint32_t */
18 /* Append to array pointed to by "ptr_old_array" of "old_n" elements of
19 * "region_size" "new region".
21 extern void array_append(uint32_t old_n, size_t region_size, void * new_region,
22 void ** ptr_old_array);