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

Function skip_spaces

tinyemu/json.c:294–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static void skip_spaces(const char **pp)
295{
296 const char *p;
297 p = *pp;
298 for(;;) {
299 if (isspace(*p)) {
300 p++;
301 } else if (p[0] == '/' && p[1] == '/') {
302 p += 2;
303 while (*p != '\0' && *p != '\n')
304 p++;
305 } else if (p[0] == '/' && p[1] == '*') {
306 p += 2;
307 while (*p != '\0' && (p[0] != '*' || p[1] != '/'))
308 p++;
309 if (*p != '\0')
310 p += 2;
311 } else {
312 break;
313 }
314 }
315 *pp = p;
316}
317
318static inline BOOL is_ident_first(int c)
319{

Callers 2

json_parse_value2Function · 0.85
json_parse_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected