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

Function find_iso4217

common/iso4217.c:195–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193};
194
195const struct iso4217_name_and_divisor *find_iso4217(const utf8 *prefix,
196 size_t len)
197{
198 for (size_t i = 0; i < ARRAY_SIZE(iso4217); i++) {
199 if (memeq(iso4217[i].name, strlen(iso4217[i].name),
200 prefix, len))
201 return &iso4217[i];
202 }
203 return NULL;
204}

Callers 4

convert_currencyFunction · 0.85
param_amountFunction · 0.85
json_add_offerFunction · 0.85
print_amountFunction · 0.85

Calls 1

memeqFunction · 0.85

Tested by

no test coverage detected