Loading...
Searching...
No Matches
od.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 Martine Lenders <mlenders@inf.fu-berlin.de>
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
21#ifndef OD_H
22#define OD_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <stddef.h>
29#include <stdint.h>
30
34#define OD_WIDTH_DEFAULT (16)
35
52void od_hex_dump_ext(const void *data, size_t data_len, uint8_t width, uint32_t offset);
53
65static inline void od_hex_dump(const void *data, size_t data_len, uint8_t width)
66{
67 od_hex_dump_ext(data, data_len, width, 0);
68}
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* OD_H */
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:65