diff options
Diffstat (limited to 'src/env/clearenv.c')
-rw-r--r-- | src/env/clearenv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/env/clearenv.c b/src/env/clearenv.c new file mode 100644 index 00000000..a2475ce7 --- /dev/null +++ b/src/env/clearenv.c @@ -0,0 +1,9 @@ +#include <stdlib.h> + +extern char **__environ; + +int clearenv() +{ + __environ[0] = 0; + return 0; +} |