summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index e1b329daee..7f8f568692 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -402,3 +402,15 @@ SAPI_API int sapi_get_uid()
return statbuf.st_uid;
}
}
+
+
+SAPI_API char *sapi_getenv(char *name, int name_len)
+{
+ if (sapi_module.getenv) {
+ SLS_FETCH();
+
+ return sapi_module.getenv(name, name_len SLS_CC);
+ } else {
+ return NULL;
+ }
+} \ No newline at end of file