mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-15 18:14:02 +00:00
seq: blaze822_loop: count file arguments too
This commit is contained in:
parent
a686b54594
commit
9fc77fc4b8
1
seq.c
1
seq.c
@ -317,6 +317,7 @@ blaze822_loop(int argc, char *argv[], void (*cb)(char *))
|
|||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
if (strchr(argv[i], '/')) { // a file name
|
if (strchr(argv[i], '/')) { // a file name
|
||||||
cb(argv[i]);
|
cb(argv[i]);
|
||||||
|
j++;
|
||||||
} else {
|
} else {
|
||||||
while ((line = blaze822_seq_next(map, argv[i], &iter))) {
|
while ((line = blaze822_seq_next(map, argv[i], &iter))) {
|
||||||
cb(line);
|
cb(line);
|
||||||
|
Loading…
Reference in New Issue
Block a user