20#define SF_INTPART (SF_IDIGITS/2)
21#define SF_INFINITE ((_Sfi = 3), Inf)
22#define SF_ZERO ((_Sfi = 1), Zero)
35 char *ep, *buf, *endsp;
40 double dval = *(
double *)dv;
44 else if ((*
sign = dval < 0.))
48 if (dval >= (
double)LONG_MAX) {
58 }
while (dval >= (
double)LONG_MAX);
63 if ((v = (
int) dval) != 0) {
78 || *decpt <= 0) ? 1 : *decpt + 1) - n;
89 while ((
int) (d = dval * 10.) == 0) {
101 }
else if ((n = (
int) (dval *= 10.)) < 10) {
102 *sp++ = (char) (
'0' + n);
115 else if (ep < endsp) {
GVIO_API const char * format
static int sign(double v)
char * _sfcvt(void *dv, int n_digit, int *decpt, int *sign, int format)
#define sfucvt(v, s, n, list, type, utype)