ReactOS
0.4.16-dev-570-g1868985
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
witoa.c
Go to the documentation of this file.
1
/*
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
6
* PROGRAMER:
7
* UPDATE HISTORY:
8
* 1995: Created
9
* 1998: Added ltoa by Ariadne
10
* 2006 : replace all api in this file to wine cvs 2006-05-21
11
*/
12
/* */
13
#include <precomp.h>
14
15
/*
16
* @implemented
17
* copy _i64toa from wine cvs 2006 month 05 day 21
18
*/
19
char
*
_i64toa
(
__int64
value
,
char
*
string
,
int
radix
)
20
{
21
ULONGLONG
val
;
22
int
negative;
23
char
buffer
[65];
24
char
*
pos
;
25
int
digit;
26
27
if
(
value
< 0 &&
radix
== 10) {
28
negative = 1;
29
val
= -
value
;
30
}
else
{
31
negative = 0;
32
val
=
value
;
33
}
/* if */
34
35
pos
= &
buffer
[64];
36
*
pos
=
'\0'
;
37
38
do
{
39
digit =
val
%
radix
;
40
val
=
val
/
radix
;
41
if
(digit < 10) {
42
*--
pos
=
'0'
+ digit;
43
}
else
{
44
*--
pos
=
'a'
+ digit - 10;
45
}
/* if */
46
}
while
(
val
!= 0
L
);
47
48
if
(negative) {
49
*--
pos
=
'-'
;
50
}
/* if */
51
52
memcpy
(
string
,
pos
, &
buffer
[64] -
pos
+ 1);
53
return
string
;
54
}
55
56
57
/*
58
* @implemented
59
*/
60
char
*
_ui64toa
(
unsigned
__int64
value
,
char
*
string
,
int
radix
)
61
{
62
char
buffer
[65];
63
char
*
pos
;
64
int
digit;
65
66
pos
= &
buffer
[64];
67
*
pos
=
'\0'
;
68
69
do
{
70
digit =
value
%
radix
;
71
value
=
value
/
radix
;
72
if
(digit < 10) {
73
*--
pos
=
'0'
+ digit;
74
}
else
{
75
*--
pos
=
'a'
+ digit - 10;
76
}
/* if */
77
}
while
(
value
!= 0
L
);
78
79
memcpy
(
string
,
pos
, &
buffer
[64] -
pos
+ 1);
80
return
string
;
81
}
__int64
#define __int64
Definition:
basetyps.h:16
pos
DWORD pos
Definition:
NtGdiDdQueryDirectDrawObject.c:15
buffer
GLuint buffer
Definition:
glext.h:5915
val
GLuint GLfloat * val
Definition:
glext.h:7180
memcpy
#define memcpy(s1, s2, n)
Definition:
mkisofs.h:878
string
char string[160]
Definition:
util.h:11
L
#define L(x)
Definition:
ntvdm.h:50
ULONGLONG
uint64_t ULONGLONG
Definition:
typedefs.h:67
value
Definition:
pdh_main.c:94
_ui64toa
char * _ui64toa(unsigned __int64 value, char *string, int radix)
Definition:
witoa.c:60
_i64toa
char * _i64toa(__int64 value, char *string, int radix)
Definition:
witoa.c:19
radix
size_t const unsigned const radix
Definition:
xtoa.cpp:37
sdk
lib
crt
string
witoa.c
Generated on Wed Jan 22 2025 06:14:04 for ReactOS by
1.9.6