faire des bords sombres
This commit is contained in:
@@ -89,6 +89,11 @@ else fprintf(stderr, "\tno out fx\n");
|
||||
|
||||
memset(&globbuf, 0, sizeof(glob_t));
|
||||
foo = glob(pattern, 0, NULL, &globbuf);
|
||||
if (foo) {
|
||||
fprintf(stderr, "glob failure %d\n", foo);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fprintf(stderr, "glob '%s' -> %d, %ld files found\n", pattern, foo,
|
||||
globbuf.gl_pathc);
|
||||
|
||||
@@ -136,7 +141,7 @@ for (idx=0; idx<globbuf.gl_pathc; idx++) {
|
||||
fprintf(stderr, "traitement %s -> %d WTF?\n", cptr, foo);
|
||||
break;
|
||||
}
|
||||
fprintf(stderr, "\t%5d\r", idx);
|
||||
fprintf(stderr, "\t%5d / %5ld\r", idx, globbuf.gl_pathc);
|
||||
}
|
||||
fputs("\n", stderr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user