| 59 | } |
| 60 | |
| 61 | static void cleanup_dir(const char *path) { |
| 62 | char cmd[2048]; |
| 63 | snprintf(cmd, sizeof(cmd), "rm -rf '%s'", path); |
| 64 | (void)system(cmd); |
| 65 | } |
| 66 | |
| 67 | static void write_text_file(const char *path, const char *text) { |
| 68 | FILE *fp = fopen(path, "w"); |