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

Function json_add_stringn

common/json_stream.c:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void json_add_stringn(struct json_stream *js,
197 const char *fieldname,
198 const char *str TAKES,
199 size_t len)
200{
201 if (json_filter_ok(js->filter, fieldname))
202 json_out_addstrn(js->jout, fieldname, str, len);
203 if (taken(str))
204 tal_free(str);
205}
206
207void json_add_string(struct json_stream *js,
208 const char *fieldname,

Callers 10

log_to_jsonFunction · 0.85
json_listoffersFunction · 0.85
json_disableofferFunction · 0.85
json_enableofferFunction · 0.85
json_add_alternativeFunction · 0.85
json_add_invoice_fieldsFunction · 0.85
json_add_stringFunction · 0.85
convert_currencyFunction · 0.85
json_offerFunction · 0.85
json_add_utf8Function · 0.85

Calls 4

json_out_addstrnFunction · 0.85
takenFunction · 0.85
tal_freeFunction · 0.85
json_filter_okFunction · 0.70

Tested by

no test coverage detected