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

Function json_add_stringn

common/json_stream.c:283–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void json_add_stringn(struct json_stream *result, const char *fieldname,
284 const char *value TAKES, size_t value_len)
285{
286 json_add_str_fmt(result, fieldname, "%.*s", (int)value_len, value);
287 if (taken(value))
288 tal_free(value);
289}
290
291void json_add_bool(struct json_stream *result, const char *fieldname, bool value)
292{

Callers 6

convert_currencyFunction · 0.50
handle_invreq_responseFunction · 0.50
json_offerFunction · 0.50
json_add_offerFunction · 0.50
json_add_b12_invoiceFunction · 0.50
json_add_invoice_requestFunction · 0.50

Calls 3

takenFunction · 0.85
tal_freeFunction · 0.85
json_add_str_fmtFunction · 0.70

Tested by

no test coverage detected