blob: db8e8e94b8e0c5cef544216129bebe724a4f6d85 [file] [log] [blame]
#define _GNU_SOURCE
#include <stdlib.h>
#include <unistd.h>
static void dummy(char *old, char *new) {}
weak_alias(dummy, __env_rm_add);
int clearenv()
{
char **e = __environ;
__environ = 0;
if (e) while (*e) __env_rm_add(*e++, 0);
return 0;
}