Computer Science


PUTENV(3)           Linux Programmer's Manual           PUTENV(3)

NAME
       putenv - change or add an environment variable

SYNOPSIS
       #include <stdlib.h>

       int putenv(const char *string);

DESCRIPTION
       The  putenv()  function adds or changes the value of envi-
       ronment variables.  The argument string  is  of  the  form
       name=value.   If  name does not already exist in the envi-
       ronment, then string is added to the environment.  If name
       does  exist,  then the value of name in the environment is
       changed to value.

RETURN VALUE
       The putenv() function returns zero on success, or -1 if an
       error occurs.

ERRORS
       ENOMEM Insufficient space to allocate new environment.

CONFORMING TO
       SVID 3, POSIX, BSD 4.3

SEE ALSO
       getenv(3), setenv(3), unsetenv(3), environ(5)

GNU                       April 8, 1993                         1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page