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

Function json_tok_is_null

common/json_parse_simple.c:185–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185bool json_tok_is_null(const char *buffer, const jsmntok_t *tok)
186{
187 if (tok->type != JSMN_PRIMITIVE)
188 return false;
189 return buffer[tok->start] == 'n';
190}
191
192const jsmntok_t *json_next(const jsmntok_t *tok)
193{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected