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

Function printwire_tu16

devtools/print_wire.c:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102bool printwire_tu16(const char *fieldname, const u8 **cursor, size_t *plen)
103{
104 u16 v = fromwire_tu16(cursor, plen);
105 if (!*cursor) {
106 printf("**TRUNCATED tu16 %s**\n", fieldname);
107 return false;
108 }
109 printf("%u\n", v);
110 return true;
111}
112
113bool printwire_tu32(const char *fieldname, const u8 **cursor, size_t *plen)
114{

Callers

nothing calls this directly

Calls 1

fromwire_tu16Function · 0.85

Tested by

no test coverage detected