if (c == '\n')
if (c == '\n' || c == EOF)
check(char *file1, FILE *f1, char *file2, FILE *f2){	int i, j, jackpot, c, d;	long ctold, ctnew;	rewind(f1);	rewind(f2);	j = 1;	ixold[0] = ixnew[0] = 0;	jackpot = 0;	ctold = ctnew = 0;	for (i = 1; i <= len[0]; i++) {		if (J[i] == 0) {			ixold[i] = ctold += skipline(f1);			continue;		}		while (j < J[i]) {			ixnew[j] = ctnew += skipline(f2);			j++;		}		if (bflag || wflag || iflag) {			for (;;) {				c = getc(f1);				d = getc(f2);				ctold++;				ctnew++;				if (bflag && isspace(c) && isspace(d)) {					do {						if (c == '\n')							break;						ctold++;					} while (isspace(c = getc(f1)));					do {						if (d == '\n')							break;						ctnew++;					} while (isspace(d = getc(f2)));				} else if (wflag) {					while (isspace(c) && c != '\n') {						c = getc(f1);						ctold++;					}					while (isspace(d) && d != '\n') {						d = getc(f2);						ctnew++;					}				}				if (chrtran[c] != chrtran[d]) {					jackpot++;					J[i] = 0;					if (c != '\n')						ctold += skipline(f1);					if (d != '\n')						ctnew += skipline(f2);					break;				}				if (c == '\n')					break;			}		} else {			for (;;) {				ctold++;				ctnew++;				if ((c = getc(f1)) != (d = getc(f2))) {					/* jackpot++; */					J[i] = 0;					if (c != '\n')						ctold += skipline(f1);					if (d != '\n')						ctnew += skipline(f2);					break;				}				if (c == '\n')					break;			}		}		ixold[i] = ctold;		ixnew[j] = ctnew;		j++;	}	for (; j <= len[1]; j++)		ixnew[j] = ctnew += skipline(f2);	/*	 * if (jackpot)	 *	fprintf(stderr, "jackpot\n");	 */}