Heap-format a one-argument error message for *err_out. Caller frees. */
| 12143 | |
| 12144 | /* Heap-format a one-argument error message for *err_out. Caller frees. */ |
| 12145 | static char *cli_heap_msgf(const char *fmt, const char *arg) { |
| 12146 | char buf[CLI_BUF_512]; |
| 12147 | snprintf(buf, sizeof(buf), fmt, arg); |
| 12148 | return cbm_strdup(buf); |
| 12149 | } |
| 12150 | |
| 12151 | /* Levenshtein distance for near-miss flag suggestions (two-row DP; inputs |
| 12152 | * are schema property names, well under the buffer sizes used here). */ |
no outgoing calls
no test coverage detected