for (msgnum = 1; ; ++msgnum) {
state = scan(in, msgnum, SCN_MBOX, fmtstr, width, 0, 0);
if (state != SCNMSG)
break;
}
fclose(in);
for (msgnum = 1; ; ++msgnum) {
state = scan(in, msgnum, SCN_MBOX, fmtstr, width, 0, 0);
if (state != SCNMSG)
break;
}
fclose(in);