Get an environment variable value, returning default_value if not set.
| 59 | |
| 60 | /// Get an environment variable value, returning default_value if not set. |
| 61 | std::string getEnv(const char * name, const std::string & default_value = "") |
| 62 | { |
| 63 | const char * val = std::getenv(name); // NOLINT(concurrency-mt-unsafe) |
| 64 | return val ? std::string(val) : default_value; |
| 65 | } |
| 66 | |
| 67 | /// Build an execvp-compatible argv array from a vector of strings. |
| 68 | std::vector<char *> buildArgv(const std::vector<std::string> & args) |
no outgoing calls
no test coverage detected