MCPcopy Create free account
hub / github.com/ElementsProject/lightning / description_is_appended

Function description_is_appended

plugins/fetchinvoice.c:84–91  ·  view source on GitHub ↗

Returns true if b is a with something appended. */

Source from the content-addressed store, hash-verified

82
83/* Returns true if b is a with something appended. */
84static 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 */
94static void discard_result(struct command_result *ret)

Callers 1

handle_invreq_responseFunction · 0.85

Calls 2

tal_bytelenFunction · 0.85
memeqFunction · 0.85

Tested by

no test coverage detected