rsize = remsize;
}
/* Dump RIFF stream: */
- LOG("\rEntry %5zu", id);
+ LOG("%sEntry %5zu", cfg.verbose?"":"\r", id);
dump(pfx, id, riff, rsize);
/* Skip to next segment: */
++id;
}
int main(int argc, char *argv[]) {
- int i, argidx = 1;
+ int i, total, argidx = 1;
const char *odir;
struct stat st;
}
/* Loop over remaining arguments as input files: */
- for (i = argidx; i < argc; i++) {
+ for (total = 0, i = argidx; i < argc; i++) {
int fd, cnt;
char fpfx[PATH_MAX], tfn[PATH_MAX], *x;
LOG("Dumping to %s...\n", fpfx);
cnt = extract(fd, fpfx);
close(fd);
- LOG("\rDumped %d entries \n", cnt);
+ LOG("%sDumped %d entries \n", cfg.verbose?"":"\r", cnt);
+ total += cnt;
}
+ LOG("\rDumped a total of %d entries.\n", total);
exit(EXIT_SUCCESS);
}