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".
5 /* $Id: getenv.c,v 1.5 1994/06/24 11:53:40 ceriel Exp $ */
9 extern const char **_penvp;
12 getenv(const char *name)
14 register const char **v = _penvp;
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 != '='))