Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h> #include <unistd.h>
- int main() {
- int i;
- FILE *f;
- char path[128];
- for(i=0;i<100000;++i) {
- snprintf(path, 128, "./%d.tmp", i);
- f = fopen(path, "w"); if (f) {
- fprintf(f, "hello, world!\n"); fclose(f);
- unlink(path);
- } }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement