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

Function get_tlv_val

devtools/bolt12-cli.c:735–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

733}
734
735static u8 *get_tlv_val(const tal_t *ctx, const char *val)
736{
737 u8 *data = tal_hexdata(ctx, val, strlen(val));
738 if (data)
739 return data;
740 /* Literal string */
741 return tal_dup_arr(ctx, u8, (u8 *)val, strlen(val), 0);
742}
743
744int main(int argc, char *argv[])
745{

Callers 1

mainFunction · 0.85

Calls 1

tal_hexdataFunction · 0.85

Tested by

no test coverage detected