X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/d5679ed0e5ef5719497d5cd1921de4c4c4581b75..f23d010aa281711352a1e8ea2b8d631742a41b82:/hex.c diff --git a/hex.c b/hex.c index 45b4f33..dd9d93f 100644 --- a/hex.c +++ b/hex.c @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: hex.c,v 1.2 2003/05/16 00:22:58 mdw Exp $ + * $Id: hex.c,v 1.3 2004/04/08 01:36:11 mdw Exp $ * * Hexadecimal encoding and decoding. * * (c) 2001 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the mLib utilities library. * @@ -15,29 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * mLib is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with mLib; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: hex.c,v $ - * Revision 1.2 2003/05/16 00:22:58 mdw - * Test base64 and hex encoding. - * - * Revision 1.1 2002/01/13 13:26:30 mdw - * New hex encoding stuff. - * - */ - /*----- Header files ------------------------------------------------------*/ #include @@ -60,7 +49,7 @@ static const signed char decodemap[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 5x */ -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 6x */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 7x */ - }; + }; /*----- Main code ---------------------------------------------------------*/