mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
xmalloc: add xwcsdup()
This commit is contained in:
parent
c66ad118b7
commit
8aba25a477
2 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue