Heap-format a one-argument error message for *err_out. Caller frees. */
| 4512 | |
| 4513 | /* Heap-format a one-argument error message for *err_out. Caller frees. */ |
| 4514 | static 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`. */ |
| 4521 | static bool cli_schema_required_has(yyjson_val *required, const char *key) { |
no outgoing calls
no test coverage detected