librfn
An ad-hoc utility library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
include
librfn
hex.h
Go to the documentation of this file.
1
/*
2
* hex.h
3
*
4
* Part of librfn (a general utility library from redfelineninja.org.uk)
5
*
6
* Copyright (C) 2012-2014 Daniel Thompson <daniel@redfelineninja.org.uk>
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published
10
* by the Free Software Foundation; either version 3 of the License, or
11
* (at your option) any later version.
12
*/
13
14
#ifndef RF_HEX_H_
15
#define RF_HEX_H_
16
17
#include <stdio.h>
18
#include <stdlib.h>
19
28
int
hex_dump
(
unsigned
char
*p,
size_t
sz);
29
int
hex_dump_to_file
(FILE *f,
unsigned
char
*p,
size_t
sz);
30
31
int
hex_get_byte
(
const
char
*s,
const
char
**p);
32
34
#endif // RF_HEX_H_
hex_dump_to_file
int hex_dump_to_file(FILE *f, unsigned char *p, size_t sz)
Definition:
hex.c:29
hex_dump
int hex_dump(unsigned char *p, size_t sz)
Definition:
hex.c:44
hex_get_byte
int hex_get_byte(const char *s, const char **p)
Definition:
hex.c:58
Generated on Sat Feb 6 2016 21:25:32 for librfn by
1.8.10