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

Function json_int

ds4_server.c:281–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279fail:
280 buf_free(&b);
281 return false;
282}
283
284static bool json_number(const char **p, double *out) {
285 json_ws(p);
286 char *end = NULL;
287 double v = strtod(*p, &end);
288 if (end == *p) return false;
289 *p = end;
290 *out = v;
291 return true;

Callers 4

parse_chat_requestFunction · 0.85
parse_anthropic_requestFunction · 0.85
parse_responses_requestFunction · 0.85
parse_completion_requestFunction · 0.85

Calls 1

json_numberFunction · 0.85

Tested by

no test coverage detected