aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-07 10:17:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-07 10:17:49 +0000
commite0e3ab0ae7547d67d56184fd6c109eee7c21ba21 (patch)
treebbd32fb881bf19fb60a13d29d9904b6fbf070f6e /xmalloc.h
parentMerge branch 'desktop-keywords' into master (diff)
parentxmalloc: add xrealloc() and xstrndup() functions (diff)
Merge branch 'xstrndup+xrealloc' into master
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
index 90d63031..2c12cf0a 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -5,5 +5,7 @@
void *xmalloc(size_t size) XMALLOC;
void *xcalloc(size_t nmemb, size_t size) XMALLOC;
+void *xrealloc(void *ptr, 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;