home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / dtx9303 / ms_c_7 / hotline / hexdump.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-04  |  402 b   |  21 lines

  1. // =========================================================
  2. //                        HEXDUMP.CPP
  3. // =========================================================
  4.  
  5. #include <afx.h>
  6.  
  7. #define ANZAHL_STELLEN 10
  8.  
  9. char * Hex(UINT i)
  10. {
  11.    static char pszTmp[ANZAHL_STELLEN];
  12.    sprintf(pszTmp, "%x", i);
  13.    return pszTmp;
  14. }
  15.  
  16. void main(void)
  17. {
  18.    int anInt = 11;
  19.    afxDump << Hex(anInt);
  20. }
  21.