6 const char *getenv(const char *name)
9 static const char *(*getenv_orig)(const char *);
13 h = dlopen("/lib/libc.so.6", RTLD_LAZY);
14 getenv_orig = dlsym(h, "getenv");
17 ret = getenv_orig(name);
19 fprintf(stderr, "getenv(%s) -> '%s'\n", name, ret);