| 53 | } |
| 54 | |
| 55 | static void cleanup_dir(const char *path) { |
| 56 | char cmd[2048]; |
| 57 | snprintf(cmd, sizeof(cmd), "rm -rf '%s'", path); |
| 58 | (void)system(cmd); |
| 59 | } |
| 60 | |
| 61 | static void write_text_file(const char *path, const char *text) { |
| 62 | FILE *fp = fopen(path, "w"); |