diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#include "project.h" + + +void * +xmalloc (size_t s) +{ + char *ret = malloc (s); + if (!ret) + abort (); +} + +void * +xrealloc (void *p, size_t s) +{ + char *ret = realloc (p, s); + if (!ret) + abort (); +} |