mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
xmalloc: add xreallocarray()
This commit is contained in:
parent
9443ac7e29
commit
aae794e9bd
2 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
void *xmalloc(size_t size) XMALLOC;
|
||||
void *xcalloc(size_t nmemb, size_t size) XMALLOC;
|
||||
void *xrealloc(void *ptr, size_t size);
|
||||
void *xreallocarray(void *ptr, size_t n, 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue