Loading...
Searching...
No Matches
od.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Martine Lenders <mlenders@inf.fu-berlin.de>
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stddef.h>
26#include <stdint.h>
27
31#define OD_WIDTH_DEFAULT (16)
32
49void od_hex_dump_ext(const void *data, size_t data_len, uint8_t width, uint32_t offset);
50
62static inline void od_hex_dump(const void *data, size_t data_len, uint8_t width)
63{
64 od_hex_dump_ext(data, data_len, width, 0);
65}
66
67#ifdef __cplusplus
68}
69#endif
70
void od_hex_dump_ext(const void *data, size_t data_len, uint8_t width, uint32_t offset)
Dumps memory stored at data byte-wise up to data_len in hexadecimal representation to stdout.
static void od_hex_dump(const void *data, size_t data_len, uint8_t width)
Dumps memory stored at data byte-wise up to data_len in hexadecimal representation to stdout.
Definition od.h:62