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

Function json_strdup

common/json_parse_simple.c:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56char *json_strdup(const tal_t *ctx, const char *buffer, const jsmntok_t *tok)
57{
58 return tal_strndup(ctx, buffer + tok->start, tok->end - tok->start);
59}
60
61
62bool json_to_u64(const char *buffer, const jsmntok_t *tok, u64 *num)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected