GCS  0.2.3
gu_hexdump.h
1 // Copyright (C) 2012-2013 Codership Oy <info@codership.com>
2 
9 #ifndef _gu_hexdump_h_
10 #define _gu_hexdump_h_
11 
12 #include "gu_types.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 /* This makes it 32*2 + 7 spaces = 71 character per line - just short of 80 */
19 #define GU_HEXDUMP_BYTES_PER_LINE 32
20 
30 extern void
31 gu_hexdump(const void* buf, ssize_t buf_size,
32  char* str, ssize_t str_size,
33  bool alpha);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* _gu_hexdump_h_ */
40