if ((Inf = fopen(Infile, "r")) == NULL) { perror(Infile); exit(1); } if ((Dataf = fopen(Datafile, "r")) == NULL) { perror(Datafile); exit(1); }
if ((Inf = fopen(Infile, "r")) == NULL) err(1, "fopen `%s'", Infile); if ((Dataf = fopen(Datafile, "r")) == NULL) err(1, "fopen `%s'", Datafile);
main(ac, av)int	ac;char	**av;{	static STRFILE	tbl;		/* description table */	getargs(av);	if ((Inf = fopen(Infile, "r")) == NULL) {		perror(Infile);		exit(1);	}	if ((Dataf = fopen(Datafile, "r")) == NULL) {		perror(Datafile);		exit(1);	}	(void) fread(&tbl.str_version,  sizeof(tbl.str_version),  1, Dataf);	(void) fread(&tbl.str_numstr,   sizeof(tbl.str_numstr),   1, Dataf);	(void) fread(&tbl.str_longlen,  sizeof(tbl.str_longlen),  1, Dataf);	(void) fread(&tbl.str_shortlen, sizeof(tbl.str_shortlen), 1, Dataf);	(void) fread(&tbl.str_flags,    sizeof(tbl.str_flags),    1, Dataf);	(void) fread( tbl.stuff,	sizeof(tbl.stuff),	  1, Dataf);	if (!(tbl.str_flags & (STR_ORDERED | STR_RANDOM))) {		fprintf(stderr, "nothing to do -- table in file order\n");		exit(1);	}	Delimch = tbl.str_delim;	order_unstr(&tbl);	(void) fclose(Inf);	(void) fclose(Dataf);	exit(0);}