MCPcopy Create free account
hub / github.com/capstone-engine/capstone / print_string_hex

Function print_string_hex

tests/test_bpf.c:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17static void print_string_hex(const char *comment, const unsigned char *str, size_t len)
18{
19 const unsigned char *c;
20
21 printf("%s", comment);
22 for (c = str; c < str + len; c++) {
23 printf(" 0x%02x", *c & 0xff);
24 }
25
26 printf("\n");
27}
28
29static const char * ext_name[] = {
30 [BPF_EXT_LEN] = "#len",

Callers 1

testFunction · 0.70

Calls 1

printfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…