diff options
author | Michael Meissner <gnu@the-meissners.org> | 2000-11-22 18:26:10 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 2000-11-22 18:26:10 +0000 |
commit | 73dea7905cb5fea2540256bacdfde33fe0ad1a0b (patch) | |
tree | 1dd1d4630bf2e207f204657c23319050dbf67c9c /newlib/libc/stdlib/getenv.c | |
parent | 0217c5bb3b85854cea392d7299706348dc007ae8 (diff) | |
download | cygnal-73dea7905cb5fea2540256bacdfde33fe0ad1a0b.tar.gz cygnal-73dea7905cb5fea2540256bacdfde33fe0ad1a0b.tar.bz2 cygnal-73dea7905cb5fea2540256bacdfde33fe0ad1a0b.zip |
Only reference environ indirectly through a pointer
Diffstat (limited to 'newlib/libc/stdlib/getenv.c')
-rw-r--r-- | newlib/libc/stdlib/getenv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/stdlib/getenv.c b/newlib/libc/stdlib/getenv.c index c9f1ecd96..267f67aac 100644 --- a/newlib/libc/stdlib/getenv.c +++ b/newlib/libc/stdlib/getenv.c @@ -18,7 +18,7 @@ TRAD_SYNOPSIS DESCRIPTION <<getenv>> searches the list of environment variable names and values -(using the global pointer `<<char **environ>>') for a variable whose +(using the global pointer ``<<char **environ>>'') for a variable whose name matches the string at <[name]>. If a variable name matches, <<getenv>> returns a pointer to the associated value. @@ -39,7 +39,7 @@ variables vary from one system to another. */ /* - * Copyright (c) 1987 Regents of the University of California. + * Copyright (c) 1987, 2000 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted @@ -63,8 +63,6 @@ variables vary from one system to another. #include <stddef.h> #include <string.h> -extern char **environ; - /* * _findenv -- * Returns pointer to value associated with name, if any, else NULL. |