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

Function path_basename

src/pipeline/pass_configlink.c:595–601  ·  view source on GitHub ↗

Extract basename from a file path. */

Source from the content-addressed store, hash-verified

593
594/* Extract basename from a file path. */
595static const char *path_basename(const char *path) {
596 if (!path) {
597 return "";
598 }
599 const char *slash = strrchr(path, '/');
600 return slash ? slash + SKIP_ONE : path;
601}
602
603/* Check if a Cargo.toml QN contains a dependency section in any dotted part. */
604static bool is_cargo_dep_section(const char *qn) {

Callers 1

collect_manifest_depsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected