aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-01-30 08:06:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-02-05 12:35:16 +0000
commitaae794e9bdd5f19019560041479cf7ebc46b4fa5 (patch)
tree9081f69f3e50dfffbcfb6e56169476cbae7e926c /xmalloc.h
parentbox-drawings: handle architecture with soft-float (diff)
xmalloc: add xreallocarray()
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
index 8a2c208f..03e6eb0d 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -12,6 +12,7 @@
void *xmalloc(size_t size) XMALLOC;
void *xcalloc(size_t nmemb, size_t size) XMALLOC;
void *xrealloc(void *ptr, size_t size);
+void *xreallocarray(void *ptr, size_t n, size_t size);
char *xstrdup(const char *str) XSTRDUP;
char *xstrndup(const char *str, size_t n) XSTRDUP;
char *xasprintf(const char *format, ...) PRINTF(1) XMALLOC;