home · contact · privacy
Unify Map struct common to server and client in src/common/map.h.
[plomrogue] / src / client / array_append.h
1 /* src/client/array_append.h
2  *
3  * Small memory management helper.
4  */
5
6 #ifndef ARRAY_APPEND_H
7 #define ARRAY_APPEND_H
8
9 #include <stddef.h> /* size_t */
10 #include <stdint.h> /* uint32_t */
11
12
13
14 /* Append to array pointed to by "ptr_old_array" of "old_n" elements of
15  * "region_size" "new region".
16  */
17 extern void array_append(uint32_t old_n, size_t region_size, void * new_region,
18                          void ** ptr_old_array);
19
20
21
22 #endif
23