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

Function fixup_char

common/bech32_util.c:63–72  ·  view source on GitHub ↗

Returns a char, tracks case. */

Source from the content-addressed store, hash-verified

61
62/* Returns a char, tracks case. */
63static int fixup_char(int c, bool *upper, bool *lower)
64{
65 if (c >= 'A' && c <= 'Z') {
66 *upper = true;
67 return c + ('a' - 'A');
68 } else if (c >= 'a' && c <= 'z') {
69 *lower = true;
70 }
71 return c;
72}
73
74bool from_bech32_charset(const tal_t *ctx,
75 const char *bech32,

Callers 1

from_bech32_charsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected