summaryrefslogtreecommitdiff
path: root/src/libstddjb/env_get2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/env_get2.c')
-rw-r--r--src/libstddjb/env_get2.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libstddjb/env_get2.c b/src/libstddjb/env_get2.c
deleted file mode 100644
index 5909ea6..0000000
--- a/src/libstddjb/env_get2.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* ISC license. */
-
-#include <string.h>
-#include <skalibs/bytestr.h>
-#include <skalibs/env.h>
-
-char const *env_get2 (char const *const *envp, char const *s)
-{
- size_t len, i ;
- if (!s) return 0 ;
- len = strlen(s) ;
- for (i = 0 ; envp[i] ; ++i)
- if (str_start(envp[i], s)
- && (envp[i][len] == '='))
- return envp[i] + len + 1 ;
- return 0 ;
-}