1: char    buf[100];
   2: 
   3: main(argc, argv)
   4: char **argv;
   5: {
   6:     register i;
   7:     register char *c1, *c2;
   8: 
   9:     if(argc < 3) {
  10:         write(2, "arg count\n", 10);
  11:         exit();
  12:     }
  13:     argc--;
  14:     c1 = buf;
  15:     c2 = argv[argc];
  16:     while(*c1++ = *c2++);
  17:     c1[-1] = '/';
  18:     *c1++ = '.';
  19:     *c1 = '\0';
  20:     for(i=1; i<argc; i++) {
  21:         if(fork()==0) {
  22:             execl("/bin/cp", "cp", argv[i], buf);
  23:             exit();
  24:         }
  25:         wait();
  26:     }
  27: }

Defined functions

main defined in line 3; never used

Defined variables

buf defined in line 1; used 2 times
Last modified: 1975-05-14
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 675
Valid CSS Valid XHTML 1.0 Strict