HEXDUMP(3debug)
π NAME π
hexdump β dump binary data in hex/ascii format, bestie π
π LIBRARIES π
Debug Library β link it with -ldebug and you're soooo set π«Ά
β¨ SYNOPSIS β¨
#include <debug/log.h>
#include <debug/hex.h>
void hexdump(const void *ptr, size_t size);
π DESCRIPTION π
okay so hexdump() prints size bytes, starting at ptr in memory, and it does it through the debug log system. literally the glow-up your raw memory always deserved πΈ
the output is giving 6 columns, periodt:
- column 1 β the address of the row (in bytes) π
- columns 2 to 5 β the characters in the row represented as hexadecimal bytes π’
- the last column β the bytes as printable characters π¨οΈ
and if a character isn't printable?? it gets replaced by a dot . β no cap, that's just the vibe check it does π
β οΈ NOTES β οΈ
none of the libdebug routines are thread-safe. and the author is not planning to change this either!! π iconic honestly. for more information, please see http://threading.2038bug.com/
π SEE ALSO π
π AUTHOR π
written by Abraham vd Merwe <abz@blio.com> π
this page came from the Unix manual, dated August 2004 β yes bestie, we're serving vintage 3debug energy and it still ate π β¨
π¦ where this page comes from
- debian bookworm: libdebug0-dev 0.5.3-7 Β· BSD-3-Clause
- debian trixie: libdebug0-dev 0.5.3-8+b1 Β· BSD-3-Clause
- ubuntu jammy: libdebug0-dev 0.5.3-6 Β· BSD-3-Clause
- ubuntu noble: libdebug0-dev 0.5.3-7 Β· BSD-3-Clause
- ubuntu questing: libdebug0-dev 0.5.3-8
- Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms