MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / count_slashes

Function count_slashes

src/store/store.c:9790–9798  ·  view source on GitHub ↗

Count the number of '/' in a string. */

Source from the content-addressed store, hash-verified

9788
9789/* Count the number of '/' in a string. */
9790static int count_slashes(const char *s) {
9791 int n = 0;
9792 for (; *s; s++) {
9793 if (*s == '/') {
9794 n++;
9795 }
9796 }
9797 return n;
9798}
9799
9800/* Push a tree entry, growing the array if needed. */
9801static void push_tree_entry(cbm_file_tree_entry_t **entries, int *en, int *ecap,

Callers 1

arch_collect_entriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected