2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 libc_hidden_proto(getenv)
12 /* Experimentally off - libc_hidden_proto(memcmp) */
13 /* Experimentally off - libc_hidden_proto(strlen) */
15 /* IEEE Std 1003.1-2001 says getenv need not be thread safe, so
16 * don't bother locking access to __environ */
17 char *getenv(const char *var)
26 if (memcmp(var, *ep, len) == 0 && (*ep)[len] == '=') {
33 libc_hidden_def(getenv)