diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-10 11:02:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-10 11:02:12 +0000 |
| commit | b308e09261f788e5b004c79e72f907b207d7f37c (patch) | |
| tree | 55a372d7c4289e5f83dc354ad04c532cb98db762 /xmalloc.c | |
| parent | shm: MAP_UNINITIALIZED is a linux only mmap flag (diff) | |
| parent | doc: foot.ini: word-delimiters: whitespace chars are always delimiters (diff) | |
Merge branch 'configurable-word-delimiters' into master
Closes #156
Diffstat (limited to 'xmalloc.c')
| -rw-r--r-- | xmalloc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <wchar.h> #include <syslog.h> #include "xmalloc.h" @@ -54,6 +55,12 @@ xstrdup(const char *str) return check_alloc(strdup(str)); } +wchar_t * +xwcsdup(const wchar_t *str) +{ + return check_alloc(wcsdup(str)); +} + char * xstrndup(const char *str, size_t n) { |
