From 5a4cac63cef0a74488382eedb1e161c7d8277c64 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 27 May 2024 15:59:18 -0300 Subject: src/util.h: Add EXIT_USAGE --- src/util.c | 3 +++ src/util.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/util.c b/src/util.c index e7a3823..e295cb6 100644 --- a/src/util.c +++ b/src/util.c @@ -13,6 +13,9 @@ const size_t NULL_TERMINATOR = sizeof((char)'\0'); +const int +EXIT_USAGE = 2; + int slurp(const char *const filename, char **out) { int rc = -1; diff --git a/src/util.h b/src/util.h index ca6ba3f..f1bace9 100644 --- a/src/util.h +++ b/src/util.h @@ -1,6 +1,9 @@ extern const size_t NULL_TERMINATOR; +extern const int +EXIT_USAGE; + int slurp(const char *const filename, char **out); -- cgit v1.2.3