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

Function comp_by_name

common/json_param.c:200–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static int comp_by_name(const struct param *a, const struct param *b,
201 void *unused)
202{
203 return strcmp(a->name, b->name);
204}
205
206/* This comparator is a bit different, but works well.
207 * Return 0 if @a is optional and @b is required. Otherwise return 1.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected