#define _GNU_SOURCE #include extern char **__environ; int clearenv() { __environ[0] = 0; return 0; }