MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _getenv_static

Function _getenv_static

freebsd/kern/kern_environment.c:460–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460static char *
461_getenv_static(const char *name)
462{
463 char *val;
464
465 val = _getenv_static_from(md_envp, name);
466 if (val != NULL)
467 return (val);
468 val = _getenv_static_from(kern_envp, name);
469 if (val != NULL)
470 return (val);
471 return (NULL);
472}
473
474/*
475 * Look up an environment variable by name.

Callers 2

kern_getenvFunction · 0.70
kenv_acquireFunction · 0.70

Calls 1

_getenv_static_fromFunction · 0.70

Tested by

no test coverage detected