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