mongoose/docs/c-api/util.h/mg_hexdump.md
Dmitry Frank 849ec1684a Apply Mongoose docs edits by Ev
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
2016-07-26 15:06:04 +00:00

491 B

title decl_name symbol_kind signature
mg_hexdump() mg_hexdump func int mg_hexdump(const void *buf, int len, char *dst, int dst_len);

Generates a human-readable hexdump of memory chunk.

Takes a memory buffer buf of length len and creates a hex dump of that buffer in dst. The generated output is a-la hexdump(1). Returns the length of generated string, excluding terminating \0. If returned length is bigger than dst_len, the overflow bytes are discarded.