comparison libiberty/setenv.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents a06113de4d67
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Copyright (C) 1992, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. 1 /* Copyright (C) 1992, 1995, 1996, 1997, 2002, 2011 Free Software Foundation,
2 Inc.
2 This file based on setenv.c in the GNU C Library. 3 This file based on setenv.c in the GNU C Library.
3 4
4 The GNU C Library is free software; you can redistribute it and/or 5 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as 6 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the 7 published by the Free Software Foundation; either version 2 of the
17 Boston, MA 02110-1301, USA. */ 18 Boston, MA 02110-1301, USA. */
18 19
19 20
20 /* 21 /*
21 22
22 @deftypefn Supplemental int setenv (const char *@var{name}, const char *@var{value}, int @var{overwrite}) 23 @deftypefn Supplemental int setenv (const char *@var{name}, @
24 const char *@var{value}, int @var{overwrite})
23 @deftypefnx Supplemental void unsetenv (const char *@var{name}) 25 @deftypefnx Supplemental void unsetenv (const char *@var{name})
24 26
25 @code{setenv} adds @var{name} to the environment with value 27 @code{setenv} adds @var{name} to the environment with value
26 @var{value}. If the name was already present in the environment, 28 @var{value}. If the name was already present in the environment,
27 the new value will be stored only if @var{overwrite} is nonzero. 29 the new value will be stored only if @var{overwrite} is nonzero.