shithub: npe

ref: 5cade7073c5e1ed971b525e49c3c0dd43d6a9feb
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;
}