2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 ANSI C function setenv().
12 /*****************************************************************************
24 Change or add an environment variable.
27 name - Name of the environment variable,
28 value - Value wich the variable must be set or changed to.
29 overwrite - If non-zero then, if a variable with the name name already
30 exists, its value is changet to value, otherwise is not
34 Returns zero on success, or -1 if there was insufficient
35 space in the environment.
38 This function must not be used in a shared library.
48 ******************************************************************************/
50 if (!overwrite
&& FindVar(name
, LV_VAR
))
53 return -!SetVar(name
, value
, -1, LV_VAR
| GVF_LOCAL_ONLY
);