home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / unixlib36d / test / c / _test1 < prev    next >
Encoding:
Text File  |  1994-03-08  |  583 b   |  30 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.   errno = 0;
  20.   printf ("This is test 1 - argc = %d\n", argc);
  21.  
  22.   for (loop = 0; loop < argc; loop++)
  23.     printf ("arg %d => %s\n", loop, argv[loop]);
  24.  
  25.   puts ("returning");
  26.   if (errno)
  27.     printf ("%d =. %s\n", errno, sys_errlist[errno]);
  28.   return 0;
  29. }
  30.