Gitiles
Code Review
Sign In
192.168.1.100
/
T106_DC
/
9ed821d7e5d875a3395740a9cc2545671fa429b7
/
.
/
ap
/
build
/
uClibc
/
libc
/
stdlib
/
gcvt.c
blob: 3c27b62c44730e9476e8b9bbbf9b31d8817fdbf7 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
#ifdef
__UCLIBC_HAS_FLOATS__
#define
MAX_NDIGIT
17
char
*
gcvt
(
double
number
,
int
ndigit
,
char
*
buf
)
{
sprintf
(
buf
,
"%.*g"
,
(
ndigit
>
MAX_NDIGIT
)?
MAX_NDIGIT
:
ndigit
,
number
);
return
buf
;
}
#endif