skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

execvep.c (366B)


      1 /* ISC license. */
      2 
      3 #include <unistd.h>
      4 #include <string.h>
      5 #include <skalibs/posixplz.h>
      6 #include "posixplz-internal.h"
      7 
      8 void execvep (char const *file, char const *const *argv, char const *const *envp, char const *path)
      9 {
     10   if (strchr(file, '/'))
     11     execve(file, (char *const *)argv, (char *const *)envp) ;
     12   else
     13     execvep_internal(file, argv, envp, path) ;
     14 }