libs/pplib/pplib-src/src/util/utilmem.h
raw| 1 | |
| 2 | #ifndef UTIL_MEM_H |
| 3 | #define UTIL_MEM_H |
| 4 | |
| 5 | #include <stdlib.h> // for size_t and alloc functions |
| 6 | #include "utildecl.h" |
| 7 | |
| 8 | UTILAPI void * util_malloc (size_t size); |
| 9 | UTILAPI void * util_calloc (size_t num, size_t size); |
| 10 | UTILAPI void * util_realloc (void *m, size_t size); |
| 11 | |
| 12 | void util_resize (void **data, size_t unit, size_t size, size_t extra, size_t *space, int allocated); |
| 13 | |
| 14 | #define util_free free // not a call, might be used as identifier |
| 15 | |
| 16 | #endif |