2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
9 extern const char ***_penviron
;
12 getenv(const char *name
)
14 register const char **v
= *_penviron
;
15 register const char *p
, *q
;
17 if (v
== NULL
|| name
== NULL
)
19 while ((p
= *v
++) != NULL
) {
21 while (*q
&& (*q
== *p
++))
23 if (*q
|| (*p
!= '='))