home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume11 / hd_pjr / part01 / hexprint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-25  |  1.1 KB  |  42 lines

  1. /******************************************************************************
  2. *
  3. *   Copyright P.J.Ruczynski 1990
  4. *   This software is free for redistribution and re-use as long as this
  5. *   copyright is included in all source files. This software is supplied
  6. *   as is and no responsibilty is taken by the author for any problems
  7. *   arising from this code.
  8. *
  9. * File name        -  hexprint.h
  10. *
  11. * Module name        -  HEXPRINT
  12. *
  13. * Author        -  P.J.Ruczynski    <pjr@pyra.co.uk>
  14. *
  15. * First Release        -  16 Feb 1990
  16. *
  17. * Version number    -  1.1
  18. *
  19. * Description        -  This file contains definitions required by the 
  20. *               hexprint routine.
  21. *
  22. *            Revision List
  23. *
  24. * pjr    02.08.89    Changed the bcopy and bcmp routines to use defines defined
  25. *            in hexprint.h and controlled by compilation flag 'ATT'. With this
  26. *            defined att routines are used, default means bsd routines are used.
  27. *            Note that the compression stuff uses BCMP and BCOPY.
  28. *
  29. ******************************************************************************/
  30.  
  31. #define    TRUE        1
  32. #define    FALSE        0
  33. #define    H_SLEN        16
  34.  
  35. #ifdef ATT
  36. #define BCMP memcmp
  37. #define BCOPY(a,b,c) memcpy(b,a,c)
  38. #else /* ucb */
  39. #define BCMP bcmp
  40. #define BCOPY bcopy
  41. #endif
  42.