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

Function parse

ccan/ccan/tal/benchmark/samba-allocs.c:34–47  ·  view source on GitHub ↗

struct db_context contains 282 bytes in 5 blocks (ref 0) d=(nil) 0x1f64e70 */

Source from the content-addressed store, hash-verified

32
33/* struct db_context contains 282 bytes in 5 blocks (ref 0) d=(nil) 0x1f64e70 */
34static struct node *parse(const char *line)
35{
36 struct node *n = new_node();
37 const char *p;
38
39 p = strstr(line, " contains ");
40 p += strlen(" contains ");
41 p += strspn(line, " ");
42 n->len = strtol(p, NULL, 0);
43 p = strstr(p, "d=");
44 if (p[2] != '(')
45 n->destructor = true;
46 return n;
47}
48
49static void add_child(struct node *parent, struct node *child)
50{

Callers 4

read_nodesFunction · 0.85
client_custommsg_hookFunction · 0.85
service_custommsg_hookFunction · 0.85

Calls 1

new_nodeFunction · 0.70

Tested by

no test coverage detected