MCPcopy Create free account
hub / github.com/cisco/libsrtp / nibble_to_hex_char

Function nibble_to_hex_char

test/util.c:217–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217uint8_t nibble_to_hex_char(uint8_t nibble)
218{
219 char buf[16] = { '0', '1', '2', '3', '4', '5', '6', '7',
220 '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
221
222 return buf[nibble & 0xF];
223}
224
225/*
226 * hex_string_to_octet_string converts a hexadecimal string

Callers 1

octet_string_hex_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected