faire des bords sombres

This commit is contained in:
le vieux
2020-11-20 22:25:30 +01:00
parent f61f428066
commit 54ee71119d
6 changed files with 56 additions and 6 deletions

View File

@@ -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);