Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/common.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5 by youi, Sat Jan 22 05:38:03 2005 UTC revision 1.6 by tani, Fri Feb 25 07:42:57 2005 UTC
# Line 3  Line 3 
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   *   *
# Line 29  Line 32 
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  /**  /**
# Line 137  string unsignedIntToString( unsigned int Line 145  string unsignedIntToString( unsigned int
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26