On Wed, 12 Jul 2006, Andr??s wrote: > > But, if I understand correctly, Thorsten Glaser rejected that answer, > because getenv fails for different reasons. > > So, what is the proper wat to do this? Thanks
You can unconditionally return true, or if you want to emulate
Solaris:
static gboolean xunsetenv (char *varname)
{
if (varname == NULL || strchr(varname, '=') != NULL)
return (FALSE);
unsetenv (varname);
return (TRUE);
}
