summaryrefslogtreecommitdiff
path: root/src/libstddjb/pathexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/pathexec.c')
-rw-r--r--src/libstddjb/pathexec.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstddjb/pathexec.c b/src/libstddjb/pathexec.c
new file mode 100644
index 0000000..b7b088e
--- /dev/null
+++ b/src/libstddjb/pathexec.c
@@ -0,0 +1,12 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <skalibs/env.h>
+#include <skalibs/djbunix.h>
+#include <skalibs/environ.h>
+
+void pathexec (char const *const *argv)
+{
+ pathexec_fromenv(argv, (char const **)environ, env_len((char const **)environ)) ;
+}