diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-15 00:56:22 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-10-17 20:54:14 +0200 |
commit | 5e4b1826168b74d8b5e71227ded12980efd5a243 (patch) | |
tree | d1b5ce276eb0ba146abaabb8ae1ddda793d230c0 /XUtils.h | |
parent | 872e542f4eca52ce2198ba3fc30a51bc5d672dae (diff) |
Combine XAlloc.[ch] into XUtils.[ch]
Diffstat (limited to 'XUtils.h')
-rw-r--r-- | XUtils.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -7,11 +7,22 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include <assert.h> +#include <err.h> #include <stdio.h> +#include <stdlib.h> #include "Macros.h" +void fail(void) ATTR_NORETURN; + +void* xMalloc(size_t size); + +void* xCalloc(size_t nmemb, size_t size); + +void* xRealloc(void* ptr, size_t size); + #define String_startsWith(s, match) (strncmp((s),(match),strlen(match)) == 0) #define String_contains_i(s1, s2) (strcasestr(s1, s2) != NULL) |