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

Function json_add_string

common/json_stream.c:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void json_add_string(struct json_stream *js,
183 const char *fieldname,
184 const char *str TAKES)
185{
186 json_out_addstr(js->jout, fieldname, str);
187 if (taken(str))
188 tal_free(str);
189}
190
191static char *json_member_direct(struct json_stream *js,
192 const char *fieldname, size_t extra)

Callers 14

json_add_fallbackFunction · 0.70
json_add_bolt11Function · 0.70
json_add_hexFunction · 0.70
json_add_timeFunction · 0.70
json_add_timeisoFunction · 0.70
json_add_invstringFunction · 0.70
json_add_txidFunction · 0.70
json_add_addressFunction · 0.70
json_add_psbtFunction · 0.70

Calls 3

json_out_addstrFunction · 0.85
takenFunction · 0.85
tal_freeFunction · 0.85

Tested by 1

json_peer_connectedFunction · 0.40