Skip to content

Instantly share code, notes, and snippets.

View tolgahanakgun's full-sized avatar
😛
( ͡ ͡° ͜ ʖ ͡ ͡°) \╭☞

Tolgahan Akgun tolgahanakgun

😛
( ͡ ͡° ͜ ʖ ͡ ͡°) \╭☞
View GitHub Profile
@tolgahanakgun
tolgahanakgun / DumpHex.c
Last active December 14, 2022 13:12 — forked from ccbrown/DumpHex.c
Compact C Hex Dump Function w/ASCII to buffer
#include <stdio.h>
void dump_hex(const void *data, size_t size, char *output)
{
char ascii[17];
size_t i, j;
ascii[16] = '\0';
for (i = 0; i < size; ++i)
{