forked from fantaisie-software/purebasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhexdump.h
More file actions
33 lines (25 loc) · 675 Bytes
/
hexdump.h
File metadata and controls
33 lines (25 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MBA_HEXDUMP_H
#define MBA_HEXDUMP_H
/* hexdump - print hexdump of memory to stream
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef LIBMBA_API
#ifdef WIN32
# ifdef LIBMBA_EXPORTS
# define LIBMBA_API __declspec(dllexport)
# else /* LIBMBA_EXPORTS */
# define LIBMBA_API __declspec(dllimport)
# endif /* LIBMBA_EXPORTS */
#else /* WIN32 */
# define LIBMBA_API extern
#endif /* WIN32 */
#endif /* LIBMBA_API */
#include <stdio.h>
LIBMBA_API void hexdump(FILE *stream, const void *src, size_t n, size_t width);
LIBMBA_API int shexdump(const void *src, size_t len, size_t width, char *dst, char *dlim);
#ifdef __cplusplus
}
#endif
#endif /* MBA_HEXDUMP_H */