2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function setenv().
11 /*****************************************************************************
23 Change or add an environment variable.
26 name - Name of the environment variable,
27 value - Value wich the variable must be set or changed to.
28 overwrite - If non-zero then, if a variable with the name name already
29 exists, its value is changet to value, otherwise is not
33 Returns zero on success, or -1 if there was insufficient
34 space in the environment.
37 This function must not be used in a shared library.
47 ******************************************************************************/
49 if (!overwrite
&& FindVar(name
, LV_VAR
))
52 return -!SetVar(name
, value
, -1, LV_VAR
| GVF_LOCAL_ONLY
);