mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
util: Introduce env helpers
This commit is contained in:
parent
e7477c7114
commit
31a9fc1fb6
3 changed files with 50 additions and 0 deletions
11
include/util/env.h
Normal file
11
include/util/env.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue