1: static char *sccsid = "@(#)sleep.c	4.1 (Berkeley) 10/1/80";
   2: main(argc, argv)
   3: char **argv;
   4: {
   5:     int c, n;
   6:     char *s;
   7: 
   8:     n = 0;
   9:     if(argc < 2) {
  10:         printf("arg count\n");
  11:         exit(0);
  12:     }
  13:     s = argv[1];
  14:     while(c = *s++) {
  15:         if(c<'0' || c>'9') {
  16:             printf("bad character\n");
  17:             exit(0);
  18:         }
  19:         n = n*10 + c - '0';
  20:     }
  21:     sleep(n);
  22: }

Defined functions

main defined in line 2; never used

Defined variables

sccsid defined in line 1; never used
Last modified: 1982-06-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 672
Valid CSS Valid XHTML 1.0 Strict