setenv
code for
systems which do not support that interface.
malloc
and calloc
.
malloc
and calloc
.
If there is a declaration of setenv
in there it
must match our prototype.
malloc
takes for the size parameter.
Only used when !USE_MALLOC_H && !REALLY_USE_STDLIB. Defaults
to (unsigned int)
.
environ
to point to
a new vector with the variable replaced or added (someplace).
If the new value is (char *)0
(the NULL pointer) then
the variable is removed from the global environment.
I added the silly fOver parameter to make it compatible with FreeBSD and AIX versions with the same name. I would add that this code is much older than those interfaces.
putenv
interface.
$Id: setenv.html,v 6.10 2012/08/30 14:53:51 ksb Exp $