add sbase-style ecalloc(), calloc: or die

... remove intermediary variables
This commit is contained in:
Hiltjo Posthuma
2015-10-20 22:51:57 +02:00
parent 164986763a
commit 5a20b409c6
3 changed files with 18 additions and 12 deletions

1
util.h
View File

@ -5,3 +5,4 @@
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
void die(const char *errstr, ...);
void *ecalloc(size_t, size_t);