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

Function getenv_long

freebsd/kern/kern_environment.c:870–880  ·  view source on GitHub ↗

* Return a long value from an environment variable. */

Source from the content-addressed store, hash-verified

868 * Return a long value from an environment variable.
869 */
870int
871getenv_long(const char *name, long *data)
872{
873 quad_t tmp;
874 int rval;
875
876 rval = getenv_quad(name, &tmp);
877 if (rval)
878 *data = (long) tmp;
879 return (rval);
880}
881
882/*
883 * Return an unsigned long value from an environment variable.

Callers

nothing calls this directly

Calls 1

getenv_quadFunction · 0.70

Tested by

no test coverage detected