MCPcopy Create free account
hub / github.com/antirez/ds4 / json_lit

Function json_lit

ds4_server.c:175–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173static void buf_free(buf *b) {
174 free(b->ptr);
175 memset(b, 0, sizeof(*b));
176}
177
178static void json_ws(const char **p) {
179 while (**p && isspace((unsigned char)**p)) (*p)++;
180}
181
182static bool json_lit(const char **p, const char *lit) {
183 size_t n = strlen(lit);

Callers 13

json_boolFunction · 0.85
json_skip_value_depthFunction · 0.85
json_contentFunction · 0.85
parse_tool_calls_valueFunction · 0.85
parse_tools_valueFunction · 0.85
parse_anthropic_contentFunction · 0.85
parse_anthropic_systemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected