summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-05-27 15:59:18 -0300
committerEuAndreh <eu@euandre.org>2024-05-27 15:59:18 -0300
commit5a4cac63cef0a74488382eedb1e161c7d8277c64 (patch)
tree384f198c70a09a1c5a60e04e0c314deb65149232 /src
parentMakefile: update "siphash" to new "siphashbs" name (diff)
downloadpindaiba-5a4cac63cef0a74488382eedb1e161c7d8277c64.tar.gz
pindaiba-5a4cac63cef0a74488382eedb1e161c7d8277c64.tar.xz
src/util.h: Add EXIT_USAGE
Diffstat (limited to 'src')
-rw-r--r--src/util.c3
-rw-r--r--src/util.h3
2 files changed, 6 insertions, 0 deletions
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);