xref: /netbsd-src/external/bsd/elftosb/dist/common/HexValues.h (revision 993229b6fea628ff8b1fa09146c80b0cfb2768eb)
1 /*
2  * File:	HexValues.h
3  *
4  * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5  * See included license file for license details.
6  */
7 #if !defined(_HexValues_h_)
8 #define _HexValues_h_
9 
10 #include "stdafx.h"
11 
12 //! \brief Determines whether \a c is a hex digit character.
13 bool isHexDigit(char c);
14 
15 //! \brief Converts a hexidecimal character to the integer equivalent.
16 uint8_t hexCharToInt(char c);
17 
18 //! \brief Converts a hex-encoded byte to the integer equivalent.
19 uint8_t hexByteToInt(const char * encodedByte);
20 
21 #endif // _HexValues_h_
22