1#include <cstdlib>
2#include <iostream>
3
4int main() {
5 if (const char *env_p = std::getenv(name: "FOO"))
6 std::cout << "FOO=" << env_p << '\n';
7}
8

source code of lldb/test/Shell/Process/Inputs/env.cpp