2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/string/witoa.c
5 * PURPOSE: converts a integer to ascii
9 * 1998: Added ltoa by Ariadne
10 * 2006 : replace all api in this file to wine cvs 2006-05-21
17 * copy _i64toa from wine cvs 2006 month 05 day 21
19 char* _i64toa(__int64 value
, char* string
, int radix
)
27 if (value
< 0 && radix
== 10) {
44 *--pos
= 'a' + digit
- 10;
52 memcpy(string
, pos
, &buffer
[64] - pos
+ 1);
60 char* _ui64toa(unsigned __int64 value
, char* string
, int radix
)
70 digit
= value
% radix
;
71 value
= value
/ radix
;
75 *--pos
= 'a' + digit
- 10;
77 } while (value
!= 0L);
79 memcpy(string
, pos
, &buffer
[64] - pos
+ 1);