summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index eeb3206..af5bbd6 100644
--- a/src/util.h
+++ b/src/util.h
@@ -7,6 +7,7 @@
#include <string>
#include <filesystem>
+#include <cstdlib>
std::string to_lower(const std::string& str);
@@ -23,7 +24,7 @@ void append(T& a, const T& b)
std::string esc(const std::string& in);
-std::vector<std::string> get_paths();
+std::vector<std::string> get_paths(const std::string& path_env = std::getenv("PATH"));
std::string locate(const std::string& app,
const std::vector<std::string>& paths,