MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / token_eq

Function token_eq

tools/json-graph/src/jgflib.c:343–348  ·  view source on GitHub ↗

Checks whether tokens are equal (same text). */

Source from the content-addressed store, hash-verified

341
342/** Checks whether tokens are equal (same text). */
343int token_eq(jsmntok_t *tok1, jsmntok_t *tok2) {
344 int len1 = tok1->end - tok1->start;
345 int len2 = tok2->end - tok2->start;
346 return len1 == len2
347 && !strncmp(input + tok1->start, input + tok2->start, len1);
348}
349
350static void error(jsmntok_t *tok, const char *msg)
351{

Callers 1

show_tokens_auxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected