Add mg_hexdumpf: mg_hexdump that outputs to a file

PUBLISHED_FROM=f0fe58c9f01ef0c7b491ed0e5f51b983e4119507
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2017-02-09 10:33:33 +00:00
1 parent 6f6b12bee7
commit fc113d64f5
4 files changed
+36 -5

No files matched your search

+3
View File
@@ -3938,6 +3938,9 @@ void mg_sock_addr_to_str(const union socket_address *sa, char *buf, size_t len,
*/
int mg_hexdump(const void *buf, int len, char *dst, int dst_len);
/* Same as mg_hexdump, but with output going to file instead of a buffer. */
void mg_hexdumpf(FILE *fp, const void *buf, int len);
/*
* Generates human-readable hexdump of the data sent or received by the
* connection. `path` is a file name where hexdump should be written.