home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / sound / nh10src / spawnle.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-15  |  358 b   |  22 lines

  1. /* spawnl() example */
  2.  
  3. #include <process.h>
  4. #include <stdio.h>
  5. #include <conio.h>
  6.  
  7. int main(void)
  8. {
  9.      int result;
  10.  
  11.    puts ("spawning...");
  12.    result = spawnlp(P_WAIT, "loadhigh c:\command", NULL);
  13.      if (result == -1)
  14.      {
  15.             perror("Error from spawnl");
  16.             exit(1);
  17.      }
  18.    puts ("back to the program... and exiting...");
  19.      return 0;
  20. }
  21.  
  22.