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

Function listlen

ccan/ccan/graphql/test/run.c:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35// Helper function.
36int listlen(struct list_head *tokens);
37int listlen(struct list_head *tokens) {
38 struct graphql_token *tok;
39 int n=0;
40 list_for_each(tokens, tok, node) {
41 n++;
42 }
43 return n;
44}
45
46/* Test case function prototypes */
47

Callers 15

check_example_3Function · 0.85
check_example_5Function · 0.85
check_example_6Function · 0.85
check_example_7Function · 0.85
check_example_8Function · 0.85
check_example_9Function · 0.85
check_example_10Function · 0.85
check_example_11Function · 0.85
check_example_12_and_13Function · 0.85
check_example_14Function · 0.85
check_example_16Function · 0.85
check_example_18Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected