]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/env/unsetenv.c
b14c4c929b1f18033e68a480d4500856f33bdaa5
6 static void dummy(char *old
, char *new) {}
7 weak_alias(dummy
, __env_rm_add
);
9 int unsetenv(const char *name
)
11 size_t l
= __strchrnul(name
, '=') - name
;
17 char **e
= __environ
, **eo
= e
;
19 if (!strncmp(name
, *e
, l
) && l
[*e
] == '=')