aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-10 11:02:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-10 11:02:12 +0000
commitb308e09261f788e5b004c79e72f907b207d7f37c (patch)
tree55a372d7c4289e5f83dc354ad04c532cb98db762 /xmalloc.h
parentshm: MAP_UNINITIALIZED is a linux only mmap flag (diff)
parentdoc: foot.ini: word-delimiters: whitespace chars are always delimiters (diff)
Merge branch 'configurable-word-delimiters' into master
Closes #156
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 2c12cf0a..13d69ca4 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -1,6 +1,7 @@
#pragma once
#include <stddef.h>
+#include <wchar.h>
#include "macros.h"
void *xmalloc(size_t size) XMALLOC;
@@ -9,3 +10,4 @@ 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;
+wchar_t *xwcsdup(const wchar_t *str) XSTRDUP;