---
name: "env"
section: "3"
platform: "linux"
package: "qmail"
version: "1.06-6.2~deb10u1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/env/3"
---

# env(3)

manage the environment

## NAME

env - manage the environment

## SYNTAX

**#include \<env.h\>**

char \*\***environ**;

char \***env\_get**(*name*);\
 char \***env\_pick**();

char \**name*;

## DESCRIPTION

The environment, **environ**, is a 0-terminated array of 0-terminated strings, called environment variables. Each environment variable is of the form *name**=**value*.

**env\_get** returns the value of the first variable whose name is *name*, or 0 if there is no such variable.

**env\_pick** returns any variable in the environment, or 0 if the environment is empty.

## SEE ALSO

[environ(7)](/environ/7.md)
