util: Introduce env helpers

This commit is contained in:
Alexander Orzechowski 2022-08-19 09:59:30 -04:00
parent e7477c7114
commit 31a9fc1fb6
3 changed files with 50 additions and 0 deletions

11
include/util/env.h Normal file
View file

@ -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