| 79 | } |
| 80 | |
| 81 | static const char *rp409_read_file(const char *path) { |
| 82 | static char buf[16384]; |
| 83 | FILE *f = fopen(path, "r"); |
| 84 | if (!f) |
| 85 | return NULL; |
| 86 | size_t n = fread(buf, 1, sizeof(buf) - 1, f); |
| 87 | fclose(f); |
| 88 | buf[n] = '\0'; |
| 89 | return buf; |
| 90 | } |
| 91 | |
| 92 | /* Recursively create directory (simple two-level: parent + child). */ |
| 93 | static int rp409_mkdirp(const char *path) { |