| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
PUTENVSection: Linux Programmer's Manual (3)Updated: April 8, 2025 Index NAMEputenv - change or add an environment variableSYNOPSIS#include <stdlib.h> int putenv(const char *string); DESCRIPTIONThe putenv() function adds or changes the value of environment variables. The argument string is of the form name=value. If name does not already exist in the environment, then string is added to the environment. If name does exist, then the value of name in the environment is changed to value.RETURN VALUEThe putenv() function returns zero on success, or -1 if an error occurs.ERRORS
CONFORMING TOSVID 3, POSIX, BSD 4.3SEE ALSO
IndexThis document was created by using the manual pages. Time: 11:58:05 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |