hexio.h 360 B

1234567891011121314151617
  1. #include "bit_array.h"
  2. #ifndef HEX_IO_H
  3. #define HEX_IO_H
  4. #define HEXCHUNKSZ 32
  5. #define HEXCHARSZ 8
  6. #ifndef max
  7. #define max(x,y) ((x) > (y) ? (x) : (y))
  8. #endif
  9. #ifndef howmany
  10. #define howmany(x, y) (((x)+((y)-1))/(y))
  11. #endif
  12. int bitmask_displayhex(char *buf, int buflen, const BIT_ARRAY *bmp);;
  13. int bitmask_parsehex(const char *buf, BIT_ARRAY *bmp);
  14. #endif