MCPcopy 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
42static 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
51bool hex_encode(const void *buf, size_t bufsize, char *dest, size_t destsize)
52{

Callers 1

hex_encodeFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected