aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/env/env.c6
-rw-r--r--lib/env/env.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/env/env.c b/lib/env/env.c
index 1710462..d52c3f3 100644
--- a/lib/env/env.c
+++ b/lib/env/env.c
@@ -46,6 +46,12 @@ const char **__getenvpair(const char *key)
}
+const char **getenvp()
+{
+ return envp;
+}
+
+
u8 __match_env_key(const char *p, const char *key)
{
while (*key && *p) {
diff --git a/lib/env/env.h b/lib/env/env.h
index 7d95d63..315d91c 100644
--- a/lib/env/env.h
+++ b/lib/env/env.h
@@ -3,5 +3,6 @@
const char *getenv(const char *key);
void setenv(const char *key, const char *value);
+const char **getenvp();
#endif