---
name: "mbkgetenv"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/mbkgetenv"
---

# mbkgetenv(3)

get an environment variable

## NAME

**mbkgetenv** - get an environment variable

## SYNOPSIS

```
#include MUT_H

char *mbkgetenv(const char *name);
```

## DESCRIPTION

The **mbkgetenv()** function searches the environment list for a string that matches the string pointed to by *name*.  The strings are of the form *name = value*.

## RETURN VALUE

The **mbkgetenv()** function returns a pointer to the value in the environment, or NULL if there is no match. If **MBK\_TRACE\_GETENV** is set to "yes", mbkgetenv() will print debug info to stdout before thre real getenv() syscall is done.

## SEE ALSO

**mbk(1)** **[MBK\_TRACE\_GETENV(1)](/MBK_TRACE_GETENV/1.md)** **[getenv(3)](/getenv/3.md).**
