src/server/util/util.c

changeset 24
1a7853a4257e
parent 14
b8bf95b39952
child 47
ce9790523346
equal deleted inserted replaced
23:a2c8fc23c90e 24:1a7853a4257e
46 #include <limits.h> 46 #include <limits.h>
47 #include "prthread.h" 47 #include "prthread.h"
48 #endif /* XP_UNIX */ 48 #endif /* XP_UNIX */
49 49
50 50
51 #include "nspr.h" 51 //include "nspr.h"
52 #include "../daemon/netsite.h"
52 #include "../public/nsapi.h" 53 #include "../public/nsapi.h"
53 54
54 #include "util.h" 55 #include "util.h"
55 56
56 /* 57 /*
97 /* 98 /*
98 * Assumption: Reversing the digits will be faster in the general case 99 * Assumption: Reversing the digits will be faster in the general case
99 * than doing a log10 or some nasty trick to find the # of digits. 100 * than doing a log10 or some nasty trick to find the # of digits.
100 */ 101 */
101 102
102 NSAPI_PUBLIC int INTutil_i64toa(PRInt64 i, char *a) 103 NSAPI_PUBLIC int INTutil_i64toa(int64_t i, char *a)
103 { 104 {
104 register int x, y, p; 105 register int x, y, p;
105 register char c; 106 register char c;
106 int negative; 107 int negative;
107 108

mercurial