home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / PROCESS / SPAWNVPE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  441 b   |  19 lines

  1. /* spawnvpe.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */
  2.  
  3. #include <sys/emx.h>
  4. #include <process.h>
  5. #include <stdlib.h>
  6.  
  7. int spawnvpe (int mode, const char *name, const char * const *argv,
  8.               const char * const *envp)
  9. {
  10.   char exe[512];
  11.   char path[512];
  12.  
  13.   strcpy (exe, name);
  14.   _defext (exe, "exe");
  15.   if (_path (path, exe) != 0)
  16.     return (-1);
  17.   return (spawnve (mode, path, argv, envp));
  18. }
  19.