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

Function cbm_agent_registry_env_path

src/cli/cli.c:9147–9156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9145} cbm_agent_registry_context_t;
9146
9147static const char *cbm_agent_registry_env_path(const char *env_name, const char *home,
9148 char *resolved, size_t resolved_size) {
9149 char value[CLI_BUF_1K];
9150 resolved[0] = '\0';
9151 const char *configured = cbm_safe_getenv(env_name, value, sizeof(value), NULL);
9152 return configured && configured[0] &&
9153 cbm_expand_user_path(home, configured, resolved, resolved_size)
9154 ? resolved
9155 : NULL;
9156}
9157
9158static bool cbm_agent_registry_path_exists(const char *path, const void *context) {
9159 (void)context;

Callers 1

Calls 2

cbm_safe_getenvFunction · 0.85
cbm_expand_user_pathFunction · 0.85

Tested by

no test coverage detected