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

Function cli_first_nonspace_is_brace

src/main.c:326–331  ·  view source on GitHub ↗

True if the first non-whitespace byte of s is '{' (raw-JSON detection). */

Source from the content-addressed store, hash-verified

324
325/* True if the first non-whitespace byte of s is '{' (raw-JSON detection). */
326static bool cli_first_nonspace_is_brace(const char *s) {
327 while (*s == ' ' || *s == '\t' || *s == '\n' || *s == '\r') {
328 s++;
329 }
330 return *s == '{';
331}
332
333static int run_cli(int argc, char **argv) {
334 if (argc < MAIN_MIN_ARGC) {

Callers 1

run_cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected