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

Function path_leaf

src/pipeline/pass_pkgmap.c:1542–1550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540}
1541
1542static const char *path_leaf(const char *path) {
1543 const char *leaf = path;
1544 for (const char *p = path; p && *p; p++) {
1545 if (*p == '/' || *p == '\\') {
1546 leaf = p + 1;
1547 }
1548 }
1549 return leaf;
1550}
1551
1552static bool is_header_include(const char *path) {
1553 if (!path || !path[0]) {

Callers 1

resolve_exact_file_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected