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

Function cli_heap_msgf

src/cli/cli.c:12433–12437  ·  view source on GitHub ↗

Heap-format a one-argument error message for *err_out. Caller frees. */

Source from the content-addressed store, hash-verified

12431
12432/* Heap-format a one-argument error message for *err_out. Caller frees. */
12433static char *cli_heap_msgf(const char *fmt, const char *arg) {
12434 char buf[CLI_BUF_512];
12435 snprintf(buf, sizeof(buf), fmt, arg);
12436 return cbm_strdup(buf);
12437}
12438
12439/* Levenshtein distance for near-miss flag suggestions (two-row DP; inputs
12440 * are schema property names, well under the buffer sizes used here). */

Callers 1

cbm_cli_build_args_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected