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

Function cbm_openclaw_internal_home

src/cli/cli.c:2465–2473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2463}
2464
2465static bool cbm_openclaw_internal_home(const char *home_dir, char *out, size_t out_sz) {
2466 char env_buf[CLI_BUF_1K];
2467 const char *custom = cbm_safe_getenv("OPENCLAW_HOME", env_buf, sizeof(env_buf), NULL);
2468 if (!custom || !custom[0]) {
2469 int written = snprintf(out, out_sz, "%s", home_dir);
2470 return written > 0 && (size_t)written < out_sz;
2471 }
2472 return cbm_expand_user_path(home_dir, custom, out, out_sz);
2473}
2474
2475static bool cbm_openclaw_state_dir(const char *home_dir, char *out, size_t out_sz) {
2476 char internal_home[CLI_BUF_1K];

Callers 3

cbm_openclaw_state_dirFunction · 0.85
cbm_openclaw_config_pathFunction · 0.85

Calls 2

cbm_safe_getenvFunction · 0.85
cbm_expand_user_pathFunction · 0.85

Tested by

no test coverage detected