getenv.3 (131728) | getenv.3 (131754) |
---|---|
1.\" Copyright (c) 1988, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)getenv.3 8.2 (Berkeley) 12/11/93 | 1.\" Copyright (c) 1988, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the American National Standards Committee X3, on Information 6.\" Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" @(#)getenv.3 8.2 (Berkeley) 12/11/93 |
37.\" $FreeBSD: head/lib/libc/stdlib/getenv.3 131728 2004-07-06 23:21:36Z hmp $ | 37.\" $FreeBSD: head/lib/libc/stdlib/getenv.3 131754 2004-07-07 19:57:16Z ru $ |
38.\" 39.Dd December 11, 1993 40.Dt GETENV 3 41.Os 42.Sh NAME 43.Nm getenv , 44.Nm putenv , 45.Nm setenv , --- 62 unchanged lines hidden (view full) --- 108.Fn unsetenv 109function 110deletes all instances of the variable name pointed to by 111.Fa name 112from the list. 113.Sh RETURN VALUES 114The 115.Fn getenv | 38.\" 39.Dd December 11, 1993 40.Dt GETENV 3 41.Os 42.Sh NAME 43.Nm getenv , 44.Nm putenv , 45.Nm setenv , --- 62 unchanged lines hidden (view full) --- 108.Fn unsetenv 109function 110deletes all instances of the variable name pointed to by 111.Fa name 112from the list. 113.Sh RETURN VALUES 114The 115.Fn getenv |
116function returns the value of the environment variable as a nul terminated 117string. | 116function returns the value of the environment variable as a 117.Dv NUL Ns 118-terminated string. |
118If the variable 119.Fa name 120is not in the current environment, 121.Dv NULL 122is returned. 123.Pp 124.Rv -std setenv putenv 125.Sh ERRORS --- 48 unchanged lines hidden --- | 119If the variable 120.Fa name 121is not in the current environment, 122.Dv NULL 123is returned. 124.Pp 125.Rv -std setenv putenv 126.Sh ERRORS --- 48 unchanged lines hidden --- |