Skip to content

Instantly share code, notes, and snippets.

View dmcyk's full-sized avatar

Damian Malarczyk dmcyk

View GitHub Profile
@javiermon
javiermon / hexdump.c
Last active May 31, 2022 23:01
hexdump.c
#include <stdio.h>
void hexDump(char *desc, void *addr, int len)
{
int i;
unsigned char buff[17];
unsigned char *pc = addr;
// Output description if given.
if (desc != NULL)