#include <iostream.h>Include dependency graph for utility.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| class | bytepack |
Defines | |
| #define | BYTEPACK_DEFAULT_SIZEMAX 16 |
Functions | |
| void | inttohex (int, char *, int=sizeof(int)) |
|
|
|
|
||||||||||||||||
|
Definition at line 16 of file DCFutility.cpp. References j. Referenced by Bufferfstream.Bufferfstream(), dcfdbfilename(), dcfmbfilename(), dcfsbfilename(), MCFTPid.hex(), mcfdbfilename(), mcfmbfilename(), mcfsbfilename(), and MCFsbfilename().
00016 {
00017 const char* hexdigit="0123456789ABCDEF";
00018 char* pttmp=(char*)(&num);
00019 unsigned char c;
00020 int j=0;
00021
00022 for(int i = 0; i < min( len, int(sizeof(int) ) ); i++ ) {
00023 #ifdef STORM_RS6000_AIX
00024 c=pttmp[ sizeof(int) - len + i ];
00025 #endif
00026 #ifdef STORM_x86_LINUX
00027 c=pttmp[ len - 1 - i ];
00028 #endif
00029 #ifdef STORM_SGI_IRIX
00030 c=pttmp[ sizeof(int) - len + i ];
00031 #endif
00032 ptc[j++] = hexdigit[ int( ( c & 0xF0 ) >> 4 ) ];
00033 ptc[j++] = hexdigit[ int( ( c & 0x0F ) ) ];
00034 }
00035
00036 ptc[j]='\0';
00037 };
|
1.3.6