MCPcopy Create free account
hub / github.com/Singular/Singular / GetEnv

Function GetEnv

ppcc/adlib/os.cc:422–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422Str *GetEnv(const char *name) {
423 char *result = getenv(name);
424 if (result)
425 return new Str(result);
426 else
427 return NULL;
428}
429
430Str *GetEnv(Str *name) {
431 return GetEnv(name->c_str());

Callers 1

ProgramPathFunction · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected