diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-18 16:52:47 +0000 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-18 16:53:51 +0000 |
commit | 04daafbde36ab696069a9df17ff85629574491c4 (patch) | |
tree | 66bff8def53de1a0f27038d880bd1306dc2ced39 /jv_alloc.h | |
parent | 75421cbfe32ae6428fe08b6ba83f1f7ac0322c33 (diff) |
Add wrappers for malloc/realloc/free. See #43.
Diffstat (limited to 'jv_alloc.h')
-rw-r--r-- | jv_alloc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jv_alloc.h b/jv_alloc.h new file mode 100644 index 00000000..0613d587 --- /dev/null +++ b/jv_alloc.h @@ -0,0 +1,10 @@ +#ifndef JV_ALLOC_H +#define JV_ALLOC_H + +#include <stddef.h> + +void* jv_mem_alloc(size_t); +void jv_mem_free(void*); +__attribute__((warn_unused_result)) void* jv_mem_realloc(void*, size_t); + +#endif |