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

Function cli_heap_msgf

src/cli/cli.c:4514–4518  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4512
4513/* Heap-format a one-argument error message for *err_out. Caller frees. */
4514static char *cli_heap_msgf(const char *fmt, const char *arg) {
4515 char buf[CLI_BUF_512];
4516 snprintf(buf, sizeof(buf), fmt, arg);
4517 return cbm_strdup(buf);
4518}
4519
4520/* True if the schema's required[] array contains `key`. */
4521static bool cli_schema_required_has(yyjson_val *required, const char *key) {

Callers 1

cbm_cli_build_args_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected