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

Function cli_heap_msgf

src/cli/cli.c:13940–13944  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

13938
13939/* Heap-format a one-argument error message for *err_out. Caller frees. */
13940static char *cli_heap_msgf(const char *fmt, const char *arg) {
13941 char buf[CLI_BUF_512];
13942 snprintf(buf, sizeof(buf), fmt, arg);
13943 return cbm_strdup(buf);
13944}
13945
13946/* Levenshtein distance for near-miss flag suggestions (two-row DP; inputs
13947 * 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