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

Function path_basename

internal/cbm/helpers.c:272–275  ·  view source on GitHub ↗

Extract basename from path

Source from the content-addressed store, hash-verified

270
271// Extract basename from path
272static const char *path_basename(const char *path) {
273 const char *last = strrchr(path, '/');
274 return last ? last + SKIP_ONE : path;
275}
276
277// Strip extension from basename
278static 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