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

Function env_copy

internal/cbm/helpers.c:2177–2184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2175}
2176
2177static bool env_copy(char *out, size_t sz, const char *s, size_t n) {
2178 if (n == 0 || n >= sz) {
2179 return false;
2180 }
2181 memcpy(out, s, n);
2182 out[n] = '\0';
2183 return true;
2184}
2185
2186/* The host of a URL value (after any user@, before :port). */
2187static bool env_url_host(const char *v, char *host, size_t sz) {

Callers 4

env_url_hostFunction · 0.85
env_hostportFunction · 0.85
env_svc_dnsFunction · 0.85
cbm_env_addressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected