do_hex_dump()

    #include <mplib1/dumphex.h>

    int do_hex_dump( FILE *fp, off_t curoff,
		    const char *where, int how_much );
This function outputs to the requested file a given block of memory in hexadecimal format, with and valid ASCII characters also displayed.

The memory to be display is pointed to by the where pointer, but the 'address' displayed will be based on the curoff parameter. This is of most use when display the details of a shared memory block like the SODB code.

So, if there is a block of shared memory which starts at some address pointed to by memblk and we want to display the contents of some portion of the block.

    do_hex_dump( stdout, 0x708, memblk+0x708, 0x70 );
The output would look like
00000708  .. .. .. .. .. .. .. .. 00 00 07 54 00 00 06 c8   '           T    '
00000710  00 00 07 24 00 00 07 04 00 00 06 c4 00 00 00 00   '   $            '
00000720  00 00 00 00 53 4f 44 42 20 42 61 73 65 00 00 00   '    SODB Base   '
00000730  00 00 00 00 00 00 00 00 00 00 07 38 00 1e 7d 48   '           8  }H'
00000740  00 00 0a b8 00 00 07 80 00 00 00 00 00 00 00 00   '                '
00000750  00 00 00 00 00 00 07 54 00 00 06 e4 00 00 07 04   '       T        '
00000760  00 00 07 74 00 00 07 54 00 00 06 c4 00 00 00 00   '   t   T        '
00000770  00 00 07 38 73 68 61 6c .. .. .. .. .. .. .. ..   '   8shal        '