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

# mtext\_putenv(3m17n)

## NAME

mtext\_putenv -

## SYNOPSIS

int **mtext\_putenv** (**MText** \* *mt*)

## DESCRIPTION

Change or add an environment variable. The **mtext\_putenv()** function changes or adds the value of environment variables according to M-text **mt**. It calls the function `putenv` with an argument generated by encoding **mt** according to the current locale (LC\_CTYPE).

## RETURN VALUE

This function returns zero on success, or -1 if an error occurs. \

## 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\>.
