MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / parse_ident

Function parse_ident

tinyemu/json.c:325–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static int parse_ident(char *buf, int buf_size, const char **pp)
326{
327 char *q;
328 const char *p;
329 p = *pp;
330 q = buf;
331 *q++ = *p++; /* first char is already tested */
332 while (is_ident_first(*p) || isdigit(*p)) {
333 if ((q - buf) >= buf_size - 1)
334 return -1;
335 *q++ = *p++;
336 }
337 *pp = p;
338 *q = '\0';
339 return 0;
340}
341
342JSONValue json_parse_value2(const char **pp)
343{

Callers 1

json_parse_value2Function · 0.85

Calls 1

is_ident_firstFunction · 0.85

Tested by

no test coverage detected