| 70 | /* ── Local helpers (mirror the helpers in test_cli.c) ──────────────── */ |
| 71 | |
| 72 | static int rp409_write_file(const char *path, const char *content) { |
| 73 | FILE *f = fopen(path, "w"); |
| 74 | if (!f) |
| 75 | return -1; |
| 76 | fprintf(f, "%s", content); |
| 77 | fclose(f); |
| 78 | return 0; |
| 79 | } |
| 80 | |
| 81 | static const char *rp409_read_file(const char *path) { |
| 82 | static char buf[16384]; |