Returns point in str that starts match of suffix. */
| 534 | |
| 535 | /* Returns point in str that starts match of suffix. */ |
| 536 | static char *find_suffix(char *str, char *suffix) |
| 537 | { |
| 538 | char *ptr; |
| 539 | |
| 540 | if (strlen(str) < strlen(suffix)) |
| 541 | return false; |
| 542 | |
| 543 | ptr = str + strlen(str) - strlen(suffix); |
| 544 | |
| 545 | if (streq(ptr, suffix)) |
| 546 | return ptr; |
| 547 | |
| 548 | return NULL; |
| 549 | } |
| 550 | |
| 551 | static struct splice_script_error *find_arrows_and_strs(const tal_t *ctx, |
| 552 | struct token ***tokens_inout) |
no outgoing calls
no test coverage detected