MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / from_hex

Function from_hex

tinyemu/fs_utils.h:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static inline int from_hex(int c)
57{
58 if (c >= '0' && c <= '9')
59 return c - '0';
60 else if (c >= 'A' && c <= 'F')
61 return c - 'A' + 10;
62 else if (c >= 'a' && c <= 'f')
63 return c - 'a' + 10;
64 else
65 return -1;
66}
67
68static inline uint64_t block_align(uint64_t val, uint64_t align)
69{

Callers 3

parse_stringFunction · 0.85
parse_fnameFunction · 0.85
decode_hexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected