#include <stdio.h>
#include <errno.h>

/* this is needed to be able to copy arbitrary tektronics files
   to a mailbox device. the vms copy command can get into trouble
   with record sizes.
*/

main(argc,argv)
     int argc; char **argv;
{int c;
 FILE *in,*out;
 if (argc != 3)
   {fprintf(stderr,"cat <input-filename> <output-filename>\n");
    exit(44);}
 if (!(in = fopen(argv[1],"r")))
   {perror(argv[1]);
    exit(vaxc$errno);}
 if (!(out = fopen(argv[2],"w")))
   {perror(argv[2]);
    exit(vaxc$errno);}
 while((c = getc(in)) != EOF) putc(c,out);
 fclose(in);
 fclose(out);}
   
     
