#include <precomp.h>
Go to the source code of this file.
|
wchar_t *CDECL | _i64tow (__int64 value, wchar_t *string, int radix) |
|
int CDECL | _i64tow_s (__int64 value, wchar_t *str, size_t size, int radix) |
|
wchar_t *CDECL | _ui64tow (unsigned __int64 value, wchar_t *string, int radix) |
|
int CDECL | _ui64tow_s (unsigned __int64 value, wchar_t *str, size_t size, int radix) |
|
wchar_t *CDECL | _itow (int value, wchar_t *string, int radix) |
|
int CDECL | _itow_s (int value, wchar_t *str, size_t size, int radix) |
|
wchar_t *CDECL | _ltow (long value, wchar_t *string, int radix) |
|
int CDECL | _ltow_s (long value, wchar_t *str, size_t size, int radix) |
|
wchar_t *CDECL | _ultow (unsigned long value, wchar_t *string, int radix) |
|
◆ _i64tow()
Definition at line 17 of file itow.c.
18{
20 int negative;
24
25 if (
value < 0 && radix == 10) {
26 negative = 1;
28 } else {
29 negative = 0;
31 }
32
35
36 do {
39 if (digit < 10) {
41 } else {
42 *--
pos =
'a' + digit - 10;
43 }
45
46 if (negative) {
48 }
49
52 }
54}
#define memcpy(s1, s2, n)
Referenced by lltow(), and TimeToMsString().
◆ _i64tow_s()
Definition at line 61 of file itow.c.
62{
64 unsigned int digit;
65 int is_negative;
68
71 {
74
75#ifndef _LIBCNT_
77#endif
79 }
80
81 if (
value < 0 && radix == 10)
82 {
83 is_negative = 1;
85 }
86 else
87 {
88 is_negative = 0;
90 }
91
94
95 do
96 {
99
100 if (digit < 10)
101 *--
pos =
'0' + digit;
102 else
103 *--
pos =
'a' + digit - 10;
104 }
106
107 if (is_negative)
109
112 {
115
116
117
118
119 if (is_negative)
120 {
123 }
124
127
131 }
132
134 return 0;
135}
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)
◆ _itow()
Definition at line 212 of file itow.c.
213{
215}
wchar_t *CDECL _ltow(long value, wchar_t *string, int radix)
◆ _itow_s()
Definition at line 222 of file itow.c.
223{
225}
int CDECL _ltow_s(long value, wchar_t *str, size_t size, int radix)
◆ _ltow()
Definition at line 232 of file itow.c.
233{
235 int negative;
239
240 if (
value < 0 && radix == 10) {
241 negative = 1;
243 } else {
244 negative = 0;
246 }
247
250
251 do {
254 if (digit < 10) {
255 *--
pos =
'0' + digit;
256 } else {
257 *--
pos =
'a' + digit - 10;
258 }
260
261 if (negative) {
263 }
264
265 if (
string !=
NULL) {
267 }
269}
Referenced by _itow().
◆ _ltow_s()
Definition at line 276 of file itow.c.
277{
279 unsigned int digit;
280 int is_negative;
283
286 {
289
290#ifndef _LIBCNT_
292#endif
294 }
295
296 if (
value < 0 && radix == 10)
297 {
298 is_negative = 1;
300 }
301 else
302 {
303 is_negative = 0;
305 }
306
309
310 do
311 {
314
315 if (digit < 10)
316 *--
pos =
'0' + digit;
317 else
318 *--
pos =
'a' + digit - 10;
319 }
321
322 if (is_negative)
324
327 {
330
331
332
333
334 if (is_negative)
335 {
338 }
339
342
346 }
347
349 return 0;
350}
Referenced by _itow_s().
◆ _ui64tow()
Definition at line 142 of file itow.c.
143{
147
150
151 do {
154 if (digit < 10) {
155 *--
pos =
'0' + digit;
156 } else {
157 *--
pos =
'a' + digit - 10;
158 }
160
161 if (
string !=
NULL) {
163 }
165}
Referenced by ulltow().
◆ _ui64tow_s()
Definition at line 172 of file itow.c.
174{
176 int digit;
177
180#ifndef _LIBCNT_
182#endif
184 }
185
188
189 do {
190 digit =
value % radix;
192 if (digit < 10)
193 *--
pos =
'0' + digit;
194 else
195 *--
pos =
'a' + digit - 10;
196 }
while (
value != 0);
197
201 }
202
204 return 0;
205}
◆ _ultow()
Definition at line 357 of file itow.c.
358{
362
365
366 do {
369 if (digit < 10) {
370 *--
pos =
'0' + digit;
371 } else {
372 *--
pos =
'a' + digit - 10;
373 }
375
376 if (
string !=
NULL) {
378 }
380}