1f9f00f4a0fd0bf3a1a8840fe661a6f28e9d4a96 galt Wed Feb 13 15:11:47 2013 -0800 adding capability to run md5sum against an entire file diff --git src/inc/hex.h src/inc/hex.h new file mode 100644 index 0000000..8bc2e4e --- /dev/null +++ src/inc/hex.h @@ -0,0 +1,15 @@ + +#ifndef HEX_H +#define HEX_H + +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. */ + +#endif /* HEX_H */ +