| 594 | } |
| 595 | |
| 596 | static bool dm_control_write(const char *path, const char *source, size_t length) { |
| 597 | FILE *file = cbm_fopen(path, "wb"); |
| 598 | if (!file) { |
| 599 | return false; |
| 600 | } |
| 601 | bool complete = fwrite(source, 1, length, file) == length; |
| 602 | return fclose(file) == 0 && complete; |
| 603 | } |
| 604 | |
| 605 | /* Establish the routing contract using complete byte spans, including NUL. |
| 606 | * Own imports are local; changes to a declared base can affect other files. */ |
no test coverage detected