11 int main(int argc, char ** argv)
17 printf("Usage %s dirnamebase count\n", argv[0]);
21 if (strlen(argv[1]) > 4080) {
22 printf("name too long\n");
26 count = strtoul(argv[2], NULL, 0);
28 for (i = 0; i < count; i++) {
29 sprintf(dirname, "%s-%d", argv[1], i);
32 printf("rmdir(%s) error: %s\n",
33 dirname, strerror(errno));
37 printf(" - deleted %d (time %ld)\n", i, time(0));