MCPcopy Create free account
hub / github.com/GJDuck/e9patch / twalk

Function twalk

examples/stdlib.c:5525–5532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5523 }
5524}
5525static void twalk(const void *root,
5526 void (*action)(const void *, const VISIT, const int))
5527{
5528 if (root == NULL || action == NULL)
5529 return;
5530 struct node_s *n = (struct node_s *)root;
5531 tree_walk(n, 0, action);
5532}
5533
5534static void tree_destroy(struct malloc_pool_s *pool, const struct node_s *n,
5535 void (*free_node)(void *))

Callers 1

test_treeFunction · 0.85

Calls 1

tree_walkFunction · 0.85

Tested by 1

test_treeFunction · 0.68