| 65 | } |
| 66 | |
| 67 | static void write_text_file(const char *path, const char *text) { |
| 68 | FILE *fp = fopen(path, "w"); |
| 69 | if (!fp) { |
| 70 | return; |
| 71 | } |
| 72 | fputs(text, fp); |
| 73 | fclose(fp); |
| 74 | } |
| 75 | |
| 76 | static void capture_log_sink(const char *line) { |
| 77 | size_t used = strlen(g_log_capture); |
no test coverage detected