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

Function copy_path_without_query

src/foundation/log.c:341–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341static void copy_path_without_query(const char *path, char *out, size_t outsz) {
342 if (!out || outsz == 0) {
343 return;
344 }
345 out[0] = '\0';
346 if (!path) {
347 return;
348 }
349 size_t n = 0;
350 while (path[n] && path[n] != '?' && path[n] != '#' && n < outsz - 1) {
351 out[n] = path[n];
352 n++;
353 }
354 out[n] = '\0';
355}
356
357void cbm_log_mcp_request(const char *method, const char *tool_name, bool is_error,
358 int64_t duration_us) {

Callers 1

cbm_log_http_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected