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

Function hexeq

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

Source from the content-addressed store, hash-verified

22 "f7efb414ef4d3d8be39dd04374256d3b054a322d4a6ee22736d03b00000000";
23
24static void hexeq(const void *p, size_t len, const char *hex)
25{
26 char *tmphex = tal_hexstr(NULL, p, len);
27
28 if (!streq(hex, tmphex)) {
29 fprintf(stderr, "Expected '%s' got '%s'", hex, tmphex);
30 abort();
31 }
32 tal_free(tmphex);
33}
34
35int main(int argc, const char *argv[])
36{

Callers 1

mainFunction · 0.85

Calls 3

tal_hexstrFunction · 0.85
abortFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected