(void) strcpy(Datafile, Infile); (void) strcat(Datafile, ".dat");
(void) strlcpy(Datafile, Infile, sizeof(Datafile)); if (strlcat(Datafile, ".dat", sizeof(Datafile)) >= MAXPATHLEN) errx(1, "`%s': filename too long", Infile);
getargs(av)register char	*av[];{	if (!*++av) {		(void) fprintf(stderr, "usage: unstr datafile\n");		exit(1);	}	Infile = *av;	(void) strcpy(Datafile, Infile);	(void) strcat(Datafile, ".dat");}