From 8db5030a687b9a91ca39296edb6cd4728e5d71bf Mon Sep 17 00:00:00 2001 From: Artur Artamonov Date: Sun, 29 Jun 2014 19:14:44 +0300 Subject: Initial commit --- util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 util.h (limited to 'util.h') diff --git a/util.h b/util.h new file mode 100644 index 0000000..c05f038 --- /dev/null +++ b/util.h @@ -0,0 +1,11 @@ +/* See LICENSE file for copyright and license details. */ + +#ifndef MAX +#define MAX(A, B) ((A) > (B) ? (A) : (B)) +#endif + +#ifndef MIN +#define MIN(A, B) ((A) < (B) ? (A) : (B)) +#endif + +void die(const char *errstr, ...); -- cgit v1.2.3