| 134 | /* ── Helper: check if string ends with suffix ────────────── */ |
| 135 | |
| 136 | static bool ends_with(const char *s, size_t slen, const char *suffix) { |
| 137 | size_t sufflen = strlen(suffix); |
| 138 | if (sufflen > slen) { |
| 139 | return false; |
| 140 | } |
| 141 | return strcmp(s + slen - sufflen, suffix) == 0; |
| 142 | } |
| 143 | |
| 144 | /* ── Helper: check if string contains substring ───────────── */ |
| 145 |
no outgoing calls
no test coverage detected