1
4
5# include "auxmemory.h"
6
7void *aux_allocate_array(int recordsize, int size, int reserved)
8{
9 return lmt_memory_malloc(recordsize * ((size_t) size + reserved + 1));
10}
11
12void *aux_reallocate_array(void *p, int recordsize, int size, int reserved)
13{
14 return lmt_memory_realloc(p, recordsize * ((size_t) size + reserved + 1));
15}
16
17void *aux_allocate_clear_array(int recordsize, int size, int reserved)
18{
19 return lmt_memory_calloc((size_t) size + reserved + 1, recordsize);
20}
21
22void aux_deallocate_array(void *p)
23{
24 lmt_memory_free(p);
25}
26 |