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

Function fixup_char

common/bech32_util.c:52–61  ·  view source on GitHub ↗

Returns a char, tracks case. */

Source from the content-addressed store, hash-verified

50
51/* Returns a char, tracks case. */
52static int fixup_char(int c, bool *upper, bool *lower)
53{
54 if (c >= 'A' && c <= 'Z') {
55 *upper = true;
56 return c + ('a' - 'A');
57 } else if (c >= 'a' && c <= 'z') {
58 *lower = true;
59 }
60 return c;
61}
62
63bool from_bech32_charset(const tal_t *ctx,
64 const char *bech32,

Callers 1

from_bech32_charsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected