| 12 | #include <stdio.h> |
| 13 | |
| 14 | bool printwire_u8(const char *fieldname, const u8 **cursor, size_t *plen) |
| 15 | { |
| 16 | u8 v = fromwire_u8(cursor, plen); |
| 17 | if (!*cursor) { |
| 18 | printf("**TRUNCATED u8 %s**\n", fieldname); |
| 19 | return false; |
| 20 | } |
| 21 | printf("%u\n", v); |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | bool printwire_u16(const char *fieldname, const u8 **cursor, size_t *plen) |
| 26 | { |
nothing calls this directly
no test coverage detected