shithub: npe

ref: af064114fd7e744e3af0cc67478aab670b5d13c6
dir: /libnpe/getenv.c/

View raw version
#include <unistd.h>

#undef getenv

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

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

	return e;
}