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

Function path_basename

internal/cbm/helpers.c:376–379  ·  view source on GitHub ↗

Extract basename from path

Source from the content-addressed store, hash-verified

374
375// Extract basename from path
376static const char *path_basename(const char *path) {
377 const char *last = strrchr(path, '/');
378 return last ? last + SKIP_ONE : path;
379}
380
381// Strip extension from basename
382static void strip_ext(const char *base, char *buf, size_t buflen) {

Callers 1

cbm_is_test_fileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected