home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / new / dev / c / hce / examples / clib / tests / fexecv.c < prev    next >
C/C++ Source or Header  |  1992-09-02  |  526b  |  20 lines

  1. /* Test 'fexecv()' by Jason Petty (16/6/94). (See 'LIB.doc' for details)
  2.  * This test calls the 'copy' command (which lives in your 'c:' directory)
  3.  * and shows it's failed return code.
  4.  */
  5.  
  6. long fexecv(), printf();
  7. void main(), exit();
  8.  
  9. void main()
  10. {
  11.           /* fexec(char *cmd,char *argv[]); */
  12.           /* The array of arguments are optional and */
  13.           /* are left out here to show the commands */
  14.           /* failed return code. */
  15.  
  16.   printf("\nReturn code from copy = %ld\n", fexecv("c:copy",0L));
  17.  exit(0);
  18. }
  19.  
  20.