getnextln
file1done = !getnextln(line1, fp1);
file2done = !getnextln(line2, fp2);
while (printf("%s%s\n", offset, buf) >= 0 && getnextln(buf, fp))
static char *getnextln(char *buf, FILE *);