aboutsummaryrefslogtreecommitdiffstats
path: root/liblfjail/getenv.hh
blob: 03ca8c083a5a847e90068a63ae3c96d661acced2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * This source code is released into the public domain.
 */

#ifndef	LFJAIL_GETENV_HH
#define	LFJAIL_GETENV_HH

#include <optional>
#include <string>

namespace lfjail {

/*
 * Find a variable by the given name in the environment by calling getenv_r().
 */

auto getenv(std::string_view varname) -> std::optional<std::string>;

} // namespace lf

#endif	// !LFJAIL_GETENV_HH