Codechange: introduce GetEnv that returns optional based on std::getenv

This commit is contained in:
Rubidium
2025-05-03 15:58:14 +02:00
committed by rubidium42
parent 04a6a55e94
commit 96fd291693
4 changed files with 25 additions and 25 deletions
+2
View File
@@ -167,4 +167,6 @@ inline bool IsWhitespace(char32_t c)
#include <sys/param.h>
#endif
std::optional<std::string_view> GetEnv(const char *variable);
#endif /* STRING_FUNC_H */