99360b369879974f4ad62dcc52d41ce98f616a46 kent Wed Feb 3 08:22:31 2021 -0800 Adding an include dependency. diff --git src/inc/hex.h src/inc/hex.h index 1a520db..45690f7 100644 --- src/inc/hex.h +++ src/inc/hex.h @@ -1,30 +1,33 @@ - #ifndef HEX_H #define HEX_H +#ifndef LINEFILE_H +#include "linefile.h" +#endif + char nibbleToHex(char n); /* convert nibble to hexidecimal character. 0 <= n <= 15. */ void byteToHex(unsigned char n, char *hex); /* convert byte to two hexidecimal characters. 0 <= n <= 255. */ char *byteToHexString(unsigned char n); /* convert byte to hexidecimal string. 0 <= n <= 255. */ void hexBinaryString(unsigned char *in, int inSize, char *out, int outSize); /* Convert possibly long binary string to hex string. * Out size needs to be at least 2x inSize+1 */ /* Reverse Functions */ char hexToNibble(char n); /* convert hexidecimal character to nibble. 0-9a-f. */ unsigned char hexToByte(char *hex); /* convert hexidecimal characters to unsigned char. */ int unpackHexString(char *hexString, struct lineFile *lf, int maxLen); /* Convert hexideximal string up to maxLen digits long to binary value */ #endif /* HEX_H */