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

Function ha_fits

src/cli/hook_augment.c:108–110  ·  view source on GitHub ↗

Whether snprintf wrote the whole string into a buffer of `cap` bytes. */

Source from the content-addressed store, hash-verified

106
107/* Whether snprintf wrote the whole string into a buffer of `cap` bytes. */
108static bool ha_fits(int written, size_t cap) {
109 return written > 0 && (size_t)written < cap;
110}
111
112static void ha_open_crumb_log(int deadline_ms) {
113 const char *override = getenv("CBM_HOOK_TIMEOUT_LOG"); /* tests + power users */

Callers 1

ha_open_crumb_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected