MCPcopy Create free account
hub / github.com/F-Stack/f-stack / hex_to_str

Function hex_to_str

dpdk/app/test/test_ipfrag.c:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 *indirect_pool;
51
52static inline void
53hex_to_str(uint8_t *hex, uint16_t len, char *str)
54{
55 int i;
56
57 for (i = 0; i < len; i++) {
58 sprintf(str, "%02x", hex[i]);
59 str += 2;
60 }
61 *str = 0;
62}
63
64static int
65setup_buf_pool(void)

Callers 1

test_ip_fragFunction · 0.85

Calls 1

sprintfFunction · 0.85

Tested by

no test coverage detected