Update to GPLv3+; update copyright notices everywhere.
[userv-utils] / ipif / hex.h
CommitLineData
f0e54a99 1/*
c07be359 2 * This file is part of ipif, part of userv-utils
f0e54a99 3 *
9028e234
IJ
4 * Copyright 1996-2013 Ian Jackson <ijackson@chiark.greenend.org.uk>
5 * Copyright 1998 David Damerell <damerell@chiark.greenend.org.uk>
6 * Copyright 1999,2003
7 * Chancellor Masters and Scholars of the University of Cambridge
8 * Copyright 2010 Tony Finch <fanf@dotat.at>
9 *
f0e54a99 10 * This is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by
9028e234 12 * the Free Software Foundation; either version 3 of the License, or
f0e54a99 13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
9028e234 21 * along with userv-utils; if not, see http://www.gnu.org/licenses/.
f0e54a99 22 */
2dc68225 23
24#ifndef HEX__H_INCLUDED
25#define HEX__H_INCLUDED
26
ed509ebd 27#include <stdint.h>
28
29const char *tohex(uint8_t *data, int len, char *buf);
30void unhex(const char *what, const char *txt, uint8_t *datar, int *lenr,
2dc68225 31 int minlen, int maxlen);
32
33#endif