Returns true if b is a with something appended. */
| 82 | |
| 83 | /* Returns true if b is a with something appended. */ |
| 84 | static bool description_is_appended(const char *a, const char *b) |
| 85 | { |
| 86 | if (!a || !b) |
| 87 | return false; |
| 88 | if (tal_bytelen(b) < tal_bytelen(a)) |
| 89 | return false; |
| 90 | return memeq(a, tal_bytelen(a), b, tal_bytelen(a)); |
| 91 | } |
| 92 | |
| 93 | /* Hack to suppress warnings when we finish a different command */ |
| 94 | static void discard_result(struct command_result *ret) |
no test coverage detected