aboutsummaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-19 09:59:30 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-22 10:18:00 -0400
commit31a9fc1fb60f8001f43186d36e3fbb5fce584d91 (patch)
treecebed6db21a55f5d1c0f6598e32ea52724235a5e /include/util
parente7477c71147617572c98a7daaf5934d4ad848d2a (diff)
util: Introduce env helpers
Diffstat (limited to 'include/util')
-rw-r--r--include/util/env.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/util/env.h b/include/util/env.h
new file mode 100644
index 00000000..6720fa89
--- /dev/null
+++ b/include/util/env.h
@@ -0,0 +1,11 @@
+#ifndef UTIL_ENV_H
+#define UTIL_ENV_H
+
+#include <stdbool.h>
+#include <unistd.h>
+
+bool env_parse_bool(const char *option);
+
+ssize_t env_parse_switch(const char *option, const char **switches);
+
+#endif