8. Hexdump

The hexdump(3m) module provides useful debugging functions for printing the contents of memory in conventional hex dump format.

8.1. Hexdump functions

The hexdump function
Synopsis

#include <mba/hexdump.h> void hexdump(FILE *stream, const void *src, size_t n, size_t width);
Description
Print n bytes of memory at src to stream in human readable "hex dump" format that is width columns wide.

  000b0:  0c ff 75 e8 e8 9f d5 ff  |..u.....|
  000b8:  ff 8b 45 f0 2b 45 10 c1  |..E.+E..|
  000c0:  f8 02 8d 65 f4 5b 5e 5f  |...e.[^_|
  


Copyright 2002 Michael B. Allen <mba2000 ioplex.com>