blob: 7c2435e153e2a4a0db695a7e659bff5870ddcc02 [file] [log] [blame]
/*
* clearenv.c
*
* Empty the environment
*/
#include <stdlib.h>
#include <unistd.h>
#include "env.h"
/* Note: if environ has been malloc'd, it will be freed on the next
setenv() or putenv() */
int clearenv(void)
{
environ = (char **)__null_environ;
return 0;
}