aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
new file mode 100644
index 00000000..90d63031
--- /dev/null
+++ b/xmalloc.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#include <stddef.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;