1: /* @(#)testsys.c	4.1 (Berkeley) 1/1/83 */
   2: /*
   3:  * This dinky program repeatedly reads two filenames from standard input
   4:  * and prints out the remapped filenames.
   5:  * At EOF, it effectively chdir(II)s to /usr/spool/uucp
   6:  * and repeats the above.
   7:  */
   8: 
   9: #include <stdio.h>
  10: 
  11: char b1[100], b2[100];
  12: 
  13: extern char *_fixf(), *_fixf2();
  14: 
  15: main()
  16: {
  17:     register char *s1, *s2;
  18: 
  19: top:
  20:     while (gets(b1)) {
  21:         if (gets(b2) == NULL)
  22:             exit(1);
  23:         s1 = _fixf(b1);
  24:         s2 = _fixf2(b2);
  25:         printf("%s, %s\n", s1, s2);
  26:     }
  27:     _savfile("/usr/spool/uucp");
  28:     goto top;
  29: }

Defined functions

main defined in line 15; never used

Defined variables

b1 defined in line 11; used 2 times
b2 defined in line 11; used 2 times
Last modified: 1983-01-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 677
Valid CSS Valid XHTML 1.0 Strict