aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-06 10:18:36 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-06 10:18:36 +0000
commit644859019e4000501c10893d1135f074bcccb038 (patch)
tree5ba24f69d383378a9a3fe86c8d83cbead89f19c1 /xmalloc.h
parentgrid: reflow: don't insert <width> spacer cells for *every* empty cell (diff)
parentxmalloc: log error to syslog() in fatal_error() function (diff)
Merge branch 'xmalloc' into master
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;