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

Function path_basename

src/pipeline/registry.c:925–937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923}
924
925static const char *path_basename(const char *path) {
926 if (!path || !path[0]) {
927 return path;
928 }
929 const char *slash = strrchr(path, '/');
930#ifdef _WIN32
931 const char *bslash = strrchr(path, '\\');
932 if (bslash && (!slash || bslash > slash)) {
933 slash = bslash;
934 }
935#endif
936 return slash ? slash + 1 : path;
937}
938
939/* Build and configuration languages have no cross-language call semantics: a
940 * Makefile's `$(eval ...)` or a CMake `function(...)` names nothing in a C

Calls

no outgoing calls

Tested by

no test coverage detected