summaryrefslogtreecommitdiff
path: root/src/libenvexec/env_merge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libenvexec/env_merge.c')
-rw-r--r--src/libenvexec/env_merge.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libenvexec/env_merge.c b/src/libenvexec/env_merge.c
new file mode 100644
index 0000000..ac3e17c
--- /dev/null
+++ b/src/libenvexec/env_merge.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/bytestr.h>
+#include <skalibs/env.h>
+
+size_t env_merge (char const **v, size_t vmax, char const *const *envp, size_t envlen, char const *modifs, size_t modiflen)
+{
+ return env_mergen(v, vmax, envp, envlen, modifs, modiflen, byte_count(modifs, modiflen, '\0')) ;
+}