Browse CVS Repository
Diff of /xoonips/AL/common.cc
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 3 |
* |
* |
| 4 |
* $Revision$ |
* $Revision$ |
| 5 |
* $Log$ |
* $Log$ |
| 6 |
|
* Revision 1.6 2005/02/25 07:42:57 tani |
| 7 |
|
* doubleToString追加. |
| 8 |
|
* |
| 9 |
* Revision 1.5 2005/01/22 05:38:03 youi |
* Revision 1.5 2005/01/22 05:38:03 youi |
| 10 |
* md5strを定義した. |
* md5strを定義した. |
| 11 |
* |
* |
| 32 |
#if defined(_MSC_VER) |
#if defined(_MSC_VER) |
| 33 |
#define snprintf _snprintf |
#define snprintf _snprintf |
| 34 |
int _fltused = 0x9875; |
int _fltused = 0x9875; |
| 35 |
|
#include "md5/global.h" |
| 36 |
|
#include "md5/md5.h" |
| 37 |
|
|
| 38 |
|
#define MD5_Init MD5Init |
| 39 |
|
|
| 40 |
#endif |
#endif |
| 41 |
|
|
| 42 |
/** |
/** |
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
/** |
| 150 |
|
* |
| 151 |
|
* unsigned intを文字列に変換。 |
| 152 |
|
* |
| 153 |
|
* @param i 変換すべき数値 |
| 154 |
|
* @return 変換後の文字列 |
| 155 |
|
* |
| 156 |
|
*/ |
| 157 |
|
string doubleToString( double d ){ |
| 158 |
|
char buf[256]; |
| 159 |
|
snprintf( buf, sizeof(buf), "%lf", d ); |
| 160 |
|
string s( buf ); |
| 161 |
|
return s; |
| 162 |
|
} |
| 163 |
|
|
|
|
Legend:
| Removed from v.1.5 |
|
| changed lines |
| |
Added in v.1.6 |
|
|
|