| 10 | #include <string.h> |
| 11 | |
| 12 | static bool tia_write(const char *dir, const char *name, const char *text) { |
| 13 | char path[1024]; |
| 14 | snprintf(path, sizeof(path), "%s/%s", dir, name); |
| 15 | FILE *f = fopen(path, "wb"); |
| 16 | if (!f) { |
| 17 | return false; |
| 18 | } |
| 19 | bool ok = fputs(text, f) >= 0; |
| 20 | return fclose(f) == 0 && ok; |
| 21 | } |
| 22 | |
| 23 | static cbm_ti_receipt_t tia_receipt(bool coverage) { |
| 24 | cbm_ti_receipt_t r = {0}; |
no test coverage detected