#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <malloc.h>
Go to the source code of this file.
◆ CVTBUFSIZE
◆ cvt()
Definition at line 45 of file fcvtbuf.c.
46{
48 double fi, fj;
50
52 {
57 }
59 {
64 }
65
71 {
74 }
77
78 if (fi != 0)
79 {
81 while (fi != 0)
82 {
83 fj =
modf(fi / 10, &fi);
84 *--p1 = (
int)((fj + .03) * 10) +
'0';
86 }
88 }
90 {
91 while ((fj =
arg * 10) < 1)
92 {
95 }
96 }
98 if (eflag == 0) p1 +=
r2;
101 {
104 }
106 {
109 *
p++ = (
int) fj +
'0';
110 }
112 {
115 }
117 *p1 += 5;
118 while (*p1 > '9')
119 {
120 *p1 = '0';
122 ++*--p1;
123 else
124 {
125 *p1 = '1';
126 (*decpt)++;
127 if (eflag == 0)
128 {
129 if (
p >
buf) *
p =
'0';
131 }
132 }
133 }
136}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _isnan(_In_ double)
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _finite(_In_ double)
_Check_return_ _CRTIMP double __cdecl modf(_In_ double x, _Out_ double *y)
static size_t double int ndigits
static size_t double int int * decpt
Referenced by __acrt_GetModuleFileNameA(), _access_s(), _chmod(), _mkdir(), _rmdir(), _sopen_nolock(), common_stat(), fcvtbuf(), get_file_name(), _Locale_impl::insert_ctype_facets(), remove(), and CodecvtTest::special_encodings().
◆ fcvtbuf()
Definition at line 138 of file fcvtbuf.c.
139{
141}
static char * cvt(double arg, int ndigits, int *decpt, int *sign, char *buf, int eflag)
Referenced by _fcvt().