MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_tok_strneq

Function json_tok_strneq

common/json_parse_simple.c:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool json_tok_strneq(const char *buffer, const jsmntok_t *tok,
29 const char *str, size_t len)
30{
31 if (tok->type != JSMN_STRING)
32 return false;
33 return memeq(buffer + tok->start, tok->end - tok->start, str, len);
34}
35
36bool json_tok_streq(const char *buffer, const jsmntok_t *tok, const char *str)
37{

Callers 2

json_tok_streqFunction · 0.85
json_get_membernFunction · 0.85

Calls 1

memeqFunction · 0.85

Tested by

no test coverage detected