home · contact · privacy
Server: Remove log_help(), this should be serverd by the client.
[plomrogue] / src / client / array_append.h
1 /* src/client/array_append.h
2  *
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.
6  *
7  * Small memory management helper.
8  */
9
10 #ifndef ARRAY_APPEND_H
11 #define ARRAY_APPEND_H
12
13 #include <stddef.h> /* size_t */
14 #include <stdint.h> /* uint32_t */
15
16
17
18 /* Append to array pointed to by "ptr_old_array" of "old_n" elements of
19  * "region_size" "new region".
20  */
21 extern void array_append(uint32_t old_n, size_t region_size, void * new_region,
22                          void ** ptr_old_array);
23
24
25
26 #endif
27