skalibs

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

exec_ae.c (328B)


      1 /* ISC license. */
      2 
      3 #include <stdlib.h>
      4 
      5 #include <skalibs/config.h>
      6 #include <skalibs/posixplz.h>
      7 #include <skalibs/exec.h>
      8 
      9 void exec_ae (char const *file, char const *const *argv, char const *const *envp)
     10 {
     11   char const *path = getenv("PATH") ;
     12   if (!path) path = SKALIBS_DEFAULTPATH ;
     13   execvep(file, argv, envp, path) ;
     14 }