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

Function hexeq

bitcoin/test/run-tx-encode.c:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 "f7efb414ef4d3d8be39dd04374256d3b054a322d4a6ee22736d03b00000000";
107
108static void hexeq(const void *p, size_t len, const char *hex)
109{
110 char *tmphex = tal_hexstr(NULL, p, len);
111
112 if (!streq(hex, tmphex)) {
113 fprintf(stderr, "Expected '%s' got '%s'", hex, tmphex);
114 abort();
115 }
116 tal_free(tmphex);
117}
118
119int main(int argc, const char *argv[])
120{

Callers 1

mainFunction · 0.85

Calls 3

tal_hexstrFunction · 0.85
abortFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected