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

Function json_add_string

common/json_stream.c:207–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void json_add_string(struct json_stream *js,
208 const char *fieldname,
209 const char *str TAKES)
210{
211 json_add_stringn(js, fieldname, str, strlen(str));
212}
213
214static char *json_member_direct(struct json_stream *js,
215 const char *fieldname, size_t extra)

Callers 15

json_add_channel_typeFunction · 0.70
json_add_fallbackFunction · 0.70
json_add_bolt11Function · 0.70
json_add_hexFunction · 0.70
json_add_timestrFunction · 0.70
json_add_timeisoFunction · 0.70
json_add_invstringFunction · 0.70
json_add_txidFunction · 0.70
json_add_bitcoin_blkidFunction · 0.70
json_add_address_fieldsFunction · 0.70
json_add_psbtFunction · 0.70

Calls 1

json_add_stringnFunction · 0.85

Tested by 3

test_json_filterFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40