]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/env/getenv.c
5 char *getenv(const char *name
)
7 size_t l
= __strchrnul(name
, '=') - name
;
8 if (l
&& !name
[l
] && __environ
)
9 for (char **e
= __environ
; *e
; e
++)
10 if (!strncmp(name
, *e
, l
) && l
[*e
] == '=')