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

Function json_add_primitive

common/json_stream.c:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void json_add_primitive(struct json_stream *js,
174 const char *fieldname,
175 const char *val TAKES)
176{
177 json_add_primitive_fmt(js, fieldname, "%s", val);
178 if (taken(val))
179 tal_free(val);
180}
181
182void json_add_string(struct json_stream *js,
183 const char *fieldname,

Callers 4

add_configFunction · 0.85
json_command_malformedFunction · 0.85
json_add_boolFunction · 0.85
json_add_nullFunction · 0.85

Calls 3

json_add_primitive_fmtFunction · 0.85
takenFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected