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

Function getenv_is_true

freebsd/kern/kern_environment.c:977–985  ·  view source on GitHub ↗

* Wrapper around getenv_bool to easily check for true. */

Source from the content-addressed store, hash-verified

975 * Wrapper around getenv_bool to easily check for true.
976 */
977bool
978getenv_is_true(const char *name)
979{
980 bool val;
981
982 if (getenv_bool(name, &val) != 0)
983 return (val);
984 return (false);
985}
986
987/*
988 * Wrapper around getenv_bool to easily check for false.

Callers 3

hammer_timeFunction · 0.85
initarmFunction · 0.85
init_static_kenvFunction · 0.85

Calls 1

getenv_boolFunction · 0.85

Tested by

no test coverage detected