libhexa/libhexa.h

14 lines
427 B
C

#ifndef __LIBHEXA__
#define __LIBHEXA__
#include <stdint.h>
// Write an hexadecimal dump of input data in the output buffer.
// A title can be given to the dump, center-aligned on the first line.
// In case the title is empty, this line won't be written at all.
int32_t hexdump(char* title, uint32_t title_len
, char* input_buffer, uint32_t input_buffer_len
, char* output_buffer, unsigned int* output_buffer_len);
#endif