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

Function toml_codex_take

src/cli/config_toml_edit.c:3283–3290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3281 }
3282}
3283static int toml_codex_take(const char *data, size_t len, size_t *position, const char *expected) {
3284 toml_codex_skip_space(data, len, position);
3285 size_t expected_len = strlen(expected);
3286 if (expected_len > len - *position || memcmp(data + *position, expected, expected_len) != 0)
3287 return TOML_EDIT_ERR;
3288 *position += expected_len;
3289 return TOML_EDIT_OK;
3290}
3291static int toml_codex_take_string(const char *data, size_t len, size_t *position,
3292 toml_string_t *value) {
3293 toml_codex_skip_space(data, len, position);

Callers 2

toml_codex_take_fieldFunction · 0.85

Calls 1

toml_codex_skip_spaceFunction · 0.85

Tested by

no test coverage detected