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

Function lexo_order

ccan/ccan/rune/rune.c:286–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static int lexo_order(const char *fieldval_str,
287 size_t fieldval_strlen,
288 const char *alt)
289{
290 int ret = strncmp(fieldval_str, alt, fieldval_strlen);
291
292 /* If alt is same but longer, fieldval is < */
293 if (ret == 0 && strlen(alt) > fieldval_strlen)
294 ret = -1;
295 return ret;
296}
297
298static const char *rune_alt_single(const tal_t *ctx,
299 const struct rune_altern *alt,

Callers 2

rune_alt_singleFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68