MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / getenv_or_empty

Function getenv_or_empty

populate-bucket/populate_bucket.cc:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73namespace {
74std::string getenv_or_empty(char const* name) {
75 auto value = std::getenv(name);
76 return value == nullptr ? std::string{} : value;
77}
78
79std::tuple<po::variables_map, po::options_description> parse_command_line(
80 int argc, char* argv[]) {

Callers 1

parse_command_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected