From 4564c8251353af6caf9c1bb8125377f4579dc596 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Fri, 7 Aug 2020 01:05:04 +0100 Subject: xmalloc: add xrealloc() and xstrndup() functions --- xmalloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmalloc.h') 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; -- cgit v1.3