Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ hexchar
Function
hexchar
ccan/ccan/str/hex/hex.c:42–49 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
40
}
41
42
static char hexchar(unsigned int val)
43
{
44
if (val < 10)
45
return
'0'
+ val;
46
if (val < 16)
47
return
'a'
+ val - 10;
48
abort();
49
}
50
51
bool hex_encode(const void *buf, size_t bufsize, char *dest, size_t destsize)
52
{
Callers
1
hex_encode
Function · 0.85
Calls
1
abort
Function · 0.85
Tested by
no test coverage detected