logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hexdump - dump binary data in hex/ascii format

Author

       Written by Abraham vd Merwe <abz@blio.com>

Unix                                               August 2004                                   HEXDUMP(3debug)

Description

hexdump() prints size bytes, starting at ptr in memory, using the debug log system.

       The  output consists of 6 columns. The first column contains the address of the row (in bytes). Columns 2
       to 5 contain the characters in the row represented as hexadecimal bytes. The  last  column  contains  the
       bytes as printable characters. If a character is not printable it is replaced by a dot.

Libraries

       Debug Library (-ldebug)

Name

       hexdump - dump binary data in hex/ascii format

Notes

       None  of  the  libdebug  routines  are  thread-safe.  I'm  not  planning  to change this either! For more
       information, please see http://threading.2038bug.com/

See Also

log_open(3)

Synopsis

#include<debug/log.h>#include<debug/hex.h>voidhexdump(constvoid*ptr,size_tsize);

See Also