diff options
Diffstat (limited to 'xmalloc.h')
| -rw-r--r-- | xmalloc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h new file mode 100644 index 00000000..d4e48f79 --- /dev/null +++ b/xmalloc.h @@ -0,0 +1,10 @@ +#pragma once + +#include <stddef.h> +#include <string.h> +#include "macros.h" + +void *xmalloc(size_t size) XMALLOC; +void *xcalloc(size_t nmemb, size_t size) XMALLOC; +char *xstrdup(const char *str) XSTRDUP; +char *xasprintf(const char *format, ...) PRINTF(1) XMALLOC; |
