home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / unixlib / !UnixLib / test / c / !Test0 < prev    next >
Encoding:
Text File  |  1994-03-08  |  946 b   |  34 lines

  1. /*******************************************************************************
  2.  *
  3.  * !Test.c
  4.  *
  5.  ******************************************************************************/
  6.  
  7. #include <stdio.h>
  8. #include <stddef.h>
  9. #include <stdlib.h>
  10.  
  11. #include <sys/os.h>
  12. #include <errno.h>
  13.  
  14. int
  15. main (int argc, char *argv[])
  16.  
  17. {
  18.   int loop;
  19.   int res;
  20.  
  21.   for (loop = 0; loop < argc; loop++)
  22.     printf ("arg %d => %s\n", loop, argv[loop]);
  23.  
  24.   errno = 0;
  25.  
  26.   puts ("calling");
  27.   res = system ("!Test1 command1 command2 command3 command4 command5 command6 command7 command8 command9 command10 command11 command12 command13 command14 command15 command16 command17 command18 command19 command20 command21 command22 command23 command24 command25 command26 command27 command28 command29 command30 command31 command32 command33");
  28.   printf ("res = %d\n", res);
  29.   system ("echo hello");
  30.   if (errno)
  31.     printf ("%d = %s\n", errno, sys_errlist[errno]);
  32.   return 0;
  33. }
  34.