Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/getenv.9
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | |||||
.Pp | .Pp | ||||
The | The | ||||
.Fn getenv_string | .Fn getenv_string | ||||
function stores a copy of the kernel environment variable | function stores a copy of the kernel environment variable | ||||
.Fa name | .Fa name | ||||
in the buffer described by | in the buffer described by | ||||
.Fa data | .Fa data | ||||
and | and | ||||
.Fa size. | .Fa size . | ||||
If the variable does not exist, | If the variable does not exist, | ||||
zero is returned. | zero is returned. | ||||
If the variable exists, | If the variable exists, | ||||
up to | up to | ||||
.Fa size - 1 | .Fa size - 1 | ||||
characters of its value are copied to the buffer pointed to by | characters of its value are copied to the buffer pointed to by | ||||
.Fa data | .Fa data | ||||
followed by a null character and a non-zero value is returned. | followed by a null character and a non-zero value is returned. | ||||
Show All 26 Lines |