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

Function memcount

devtools/topology.c:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static size_t memcount(const void *mem, size_t len, char c)
91{
92 size_t count = 0;
93 for (size_t i = 0; i < len; i++) {
94 if (((char *)mem)[i] == c)
95 count++;
96 }
97 return count;
98}
99
100static void visit(const struct gossmap *map,
101 struct gossmap_node *n,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected