mexec_afn.c (388B)
1 /* ISC license. */ 2 3 #include <skalibs/env.h> 4 #include <skalibs/exec.h> 5 6 void mexec_afn (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen, size_t modifn) 7 { 8 char const *newenvp[envlen + modifn + 1] ; 9 env_mergen(newenvp, envlen + modifn + 1, envp, envlen, modif, modiflen, modifn) ; 10 exec_ae(file, argv, newenvp) ; 11 }