mongoose/docs/c-api/util.h/mg_hexdump.md
Alexander Alashkin e406de7e00 Remove extra error message
PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
2016-07-25 16:36:18 +00:00

16 lines
476 B
Markdown

---
title: "mg_hexdump()"
decl_name: "mg_hexdump"
symbol_kind: "func"
signature: |
int mg_hexdump(const void *buf, int len, char *dst, int dst_len);
---
Generates human-readable hexdump of memory chunk.
Takes a memory buffer `buf` of length `len` and creates a hex dump of that
buffer in `dst`. Generated output is a-la hexdump(1).
Return length of generated string, excluding terminating `\0`. If returned
length is bigger than `dst_len`, overflow bytes are discarded.