while ((c = getopt(argc, argv, ":b:")) != -1) {
switch (c) {
case 'b':
baud = atoi(optarg);
break;
case '?':
case ':':
default:
usage();
}
}
delay = 1000000 / ((double)baud / 10.);
if (optind < argc) {
int i;
for (i = optind; i < argc; i++) {
int fd;
if ((fd = open(argv[i], O_RDONLY)) < 0) {
perror("open");
continue;
}
output(fd);
close(fd);
}
} else
output(0);