| 151 | } |
| 152 | |
| 153 | static bool pt_join(char out[PT_PATH], const char *root, const char *leaf) { |
| 154 | int n = snprintf(out, PT_PATH, "%s/%s", root, leaf); |
| 155 | return n > 0 && n < PT_PATH; |
| 156 | } |
| 157 | |
| 158 | static bool pt_write(const char *path, const void *bytes, size_t length) { |
| 159 | FILE *file = cbm_fopen(path, "wb"); |
no outgoing calls
no test coverage detected