shithub: npe

ref: 31f730351e04573e401681991e266cbe84c332b8
dir: /libnpe/getenv.c/

View raw version
#include <unistd.h>

#undef getenv

char *
npe_getenv(char *s)
{
	static char *e;

	free(e);
	e = getenv(strcmp(s, "HOME") == 0 ? "home" : s);

	return e;
}