---
name: "mtext_getenv"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtext_getenv"
---

# mtext\_getenv(3m17n)

## NAME

mtext\_getenv -

## SYNOPSIS

**MText**\* **mtext\_getenv** (const char \* *name*)

## DESCRIPTION

Get an environment variable. The **mtext\_getenv()** function searches the environment variable list for a string that matches the string pointed to by **name**.

If there is a match, the function decodes the value according to the current locale (LC\_CTYPE) into an M-text, and return that M-text.

If there is no match, the function returns NULL. \

## COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)\
 Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)\
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License  \<http://www.gnu.org/licenses/fdl.html\>.
