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

Function httpd_capture_log

tests/test_httpd.c:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72static char httpd_log_buf[8192];
73
74static void httpd_capture_log(const char *line) {
75 size_t used = strlen(httpd_log_buf);
76 size_t avail = sizeof(httpd_log_buf) - used;
77 if (avail <= 1)
78 return;
79 int n = snprintf(httpd_log_buf + used, avail, "%s\n", line ? line : "");
80 if (n < 0 || (size_t)n >= avail)
81 httpd_log_buf[sizeof(httpd_log_buf) - 1] = '\0';
82}
83
84/* ── Raw-socket test client ───────────────────────────────────── */
85

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected