# environ_clear

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L135
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-environ_clear/

```c
void environ_clear(struct environ *env, const char *name)
```

## Parameters

- `env` (`struct environ *`)
- `name` (`const char *`)

## Called by

- [`cmd_set_environment_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-environment-c-cmd_set_environment_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-environment.c#L102)
- [`environ_copy`](/en/tmux/3.7c/reference/c-function-environ_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L92)
- [`environ_for_session`](/en/tmux/3.7c/reference/c-function-environ_for_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L272)
- [`environ_update`](/en/tmux/3.7c/reference/c-function-environ_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L208)

## Calls

- [`xmalloc`](/en/tmux/3.7c/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L143)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/environ.c#L144)

## Other function references

- [`environ_find`](/en/tmux/3.7c/reference/c-function-environ_find/) (function)

## Referenced declarations

- [`environ`](/en/tmux/3.7c/reference/c-struct-environ/) (struct)
- [`environ_entry.flags`](/en/tmux/3.7c/reference/c-struct-environ_entry-flags/) (attribute)
- [`environ_entry.name`](/en/tmux/3.7c/reference/c-struct-environ_entry-name/) (attribute)
- [`environ_entry.value`](/en/tmux/3.7c/reference/c-struct-environ_entry-value/) (attribute)
