2 putenv - set the value of an environment variable
14 This function will set or change the value of an environment variable.
15 Zero is returned if the environment variable was successfully set,
16 otherwise a non-zero result is returned.
18 When called with 1 arg, env must be a string of the form:
22 This sets the environment variable "envname" to the value "envval".
24 The 2 arg form is equivalent to:
26 putenv(strcat(env, "=", val))
30 ; putenv("name", "value")
38 ; isnull(getenv("unknown"))
42 With 1 arg, env must contain at least 1 '=' character.
50 ## Copyright (C) 1999 Landon Curt Noll
52 ## Calc is open software; you can redistribute it and/or modify it under
53 ## the terms of the version 2.1 of the GNU Lesser General Public License
54 ## as published by the Free Software Foundation.
56 ## Calc is distributed in the hope that it will be useful, but WITHOUT
57 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
58 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
59 ## Public License for more details.
61 ## A copy of version 2.1 of the GNU Lesser General Public License is
62 ## distributed with calc under the filename COPYING-LGPL. You should have
63 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
64 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
66 ## @(#) $Revision: 30.1 $
67 ## @(#) $Id: putenv,v 30.1 2007/03/16 11:10:42 chongo Exp $
68 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/putenv,v $
70 ## Under source code control: 1995/07/09 03:48:57
71 ## File existed as early as: 1995
73 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
74 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/