| 156 | } |
| 157 | |
| 158 | static bool pt_write(const char *path, const void *bytes, size_t length) { |
| 159 | FILE *file = cbm_fopen(path, "wb"); |
| 160 | if (!file) |
| 161 | return false; |
| 162 | bool ok = fwrite(bytes, 1, length, file) == length; |
| 163 | return fclose(file) == 0 && ok; |
| 164 | } |
| 165 | |
| 166 | static bool pt_equal_file(const char *path, const void *bytes, size_t length) { |
| 167 | FILE *file = cbm_fopen(path, "rb"); |
no test coverage detected