#include <precomp.h>
Go to the source code of this file.
|
char *CDECL | _i64toa (__int64 value, char *string, int radix) |
|
int CDECL | _i64toa_s (__int64 value, char *str, size_t size, int radix) |
|
char *CDECL | _ui64toa (unsigned __int64 value, char *string, int radix) |
|
int CDECL | _ui64toa_s (unsigned __int64 value, char *str, size_t size, int radix) |
|
int CDECL | _itoa_s (int value, char *str, size_t size, int radix) |
|
char *CDECL | _itoa (int value, char *string, int radix) |
|
char *CDECL | _ltoa (long value, char *string, int radix) |
|
int CDECL | _ltoa_s (long value, char *str, size_t size, int radix) |
|
char *CDECL | _ultoa (unsigned long value, char *string, int radix) |
|
◆ _i64toa()
Definition at line 10 of file itoa.c.
11{
13 int negative;
16 int digit;
17
18 if (
value < 0 && radix == 10) {
19 negative = 1;
21 } else {
22 negative = 0;
24 }
25
28
29 do {
32 if (digit < 10) {
34 } else {
35 *--
pos =
'a' + digit - 10;
36 }
38
39 if (negative) {
41 }
42
45}
#define memcpy(s1, s2, n)
Referenced by lltoa().
◆ _i64toa_s()
Definition at line 50 of file itoa.c.
51{
53 unsigned int digit;
54 int is_negative;
57
60 {
63#ifndef _LIBCNT_
65#endif
67 }
68
69 if (
value < 0 && radix == 10)
70 {
71 is_negative = 1;
73 }
74 else
75 {
76 is_negative = 0;
78 }
79
82
83 do
84 {
87
88 if (digit < 10)
90 else
91 *--
pos =
'a' + digit - 10;
92 }
94
95 if (is_negative)
97
100 {
103
104
105
106
107 if (is_negative)
108 {
111 }
112
115
119 }
120
122 return 0;
123}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define MSVCRT_INVALID_PMT(x)
#define MSVCRT_CHECK_PMT(x)
_CRTIMP int *__cdecl _errno(void)
◆ _itoa()
Definition at line 205 of file itoa.c.
206{
208}
char *CDECL _ltoa(long value, char *string, int radix)
◆ _itoa_s()
Definition at line 195 of file itoa.c.
196{
198}
int CDECL _ltoa_s(long value, char *str, size_t size, int radix)
◆ _ltoa()
Definition at line 215 of file itoa.c.
216{
218 int negative;
221 int digit;
222
223 if (
value < 0 && radix == 10) {
224 negative = 1;
226 } else {
227 negative = 0;
229 }
230
233
234 do {
237 if (digit < 10) {
238 *--
pos =
'0' + digit;
239 } else {
240 *--
pos =
'a' + digit - 10;
241 }
243
244 if (negative) {
246 }
247
250}
Referenced by _itoa().
◆ _ltoa_s()
Definition at line 255 of file itoa.c.
256{
258 unsigned int digit;
259 int is_negative;
262
265 {
268
269#ifndef _LIBCNT_
271#endif
273 }
274
275 if (
value < 0 && radix == 10)
276 {
277 is_negative = 1;
279 }
280 else
281 {
282 is_negative = 0;
284 }
285
288
289 do
290 {
293
294 if (digit < 10)
295 *--
pos =
'0' + digit;
296 else
297 *--
pos =
'a' + digit - 10;
298 }
300
301 if (is_negative)
303
306 {
309
310
311
312
313 if (is_negative)
314 {
317 }
318
321
325 }
326
328 return 0;
329}
Referenced by _itoa_s().
◆ _ui64toa()
Definition at line 130 of file itoa.c.
131{
134 int digit;
135
138
139 do {
140 digit =
value % radix;
142 if (digit < 10) {
143 *--
pos =
'0' + digit;
144 } else {
145 *--
pos =
'a' + digit - 10;
146 }
148
151}
Referenced by ulltoa().
◆ _ui64toa_s()
Definition at line 156 of file itoa.c.
158{
160 int digit;
161
164#ifndef _LIBCNT_
166#endif
168 }
169
172
173 do {
176
177 if(digit < 10)
179 else
180 *--
pos =
'a'+digit-10;
182
186 }
187
189 return 0;
190}
◆ _ultoa()
Definition at line 336 of file itoa.c.
337{
340 int digit;
341
344
345 do {
346 digit =
value % radix;
348 if (digit < 10) {
349 *--
pos =
'0' + digit;
350 } else {
351 *--
pos =
'a' + digit - 10;
352 }
354
356
358}