Simple hex dump library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
LICENSE
Makefile
README.md
example.c
hex_dump.h
open_memstream.c
open_memstream.h
temp.c

README.md

Hex Dump

Simple hex dump embedded library

Author

Jung-Sang Ahn jungsang.ahn@gmail.com

How to use

(see example.c)

Copy hex_dump.h to your source directory, include it, and call print_hex_stream or print_hex_to_buf.

#include "hex_dump.h"

...

void* buffer;
size_t buffer_length;

...

print_hex_stream(stdout, buffer, buffer_length, PRINT_HEX_OPTIONS_INITIALIZER);

...

char* output;
size_t output_length;
print_hex_to_buf(&output, &output_length, buffer, buffer_length,
                 PRINT_HEX_OPTIONS_INITIALIZER);
...
free(output);

alt text