libsl

shared code master of various suckless projects
git clone git://git.suckless.org/libsl
Log | Files | Refs | LICENSE

commit 96e040538ee37ebcd1b0ade913280838385634b8
parent 53ebcb48c6b12882c6dbe352ee43c96b2fb01b84
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 26 Sep 2019 22:57:15 +0200

util.h: add ecalloc from util.c and fix die() argument declaration

Diffstat:
Mutil.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/util.h b/util.h @@ -4,4 +4,5 @@ #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) -void die(const char *errstr, ...); +void die(const char *fmt, ...); +void *ecalloc(size_t nmemb, size_t size);