blob: 432ca2618f3fdaddebd1e730103baf0e31f2bfec [file] [log] [blame] [edit]
#ifndef __MEDIAN_HEX_H_INCLUDED__
#define __MEDIAN_HEX_H_INCLUDED__
#include <strings.h> // size_t
typedef int hexdmp_error_t;
static const hexdmp_error_t HEXDMP_OK = 0;
static const hexdmp_error_t HEXDMP_ERROR = -1;
// The function produces an output to stderr similar to the "hexdump"
// application. Useful in debugging things.
hexdmp_error_t stderr_hexdmp(const char* description,
const unsigned char* data_ptr, size_t datasz);
#endif // __MEDIAN_HEX_H_INCLUDED__