OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
arm: use PATH_MEM in ioperm()
[uclinux-h8/uClibc.git]
/
libc
/
stdlib
/
gcvt.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
5
#ifdef __UCLIBC_HAS_FLOATS__
6
#define MAX_NDIGIT 17
7
char *gcvt (double number, int ndigit, char *buf)
8
{
9
sprintf(buf, "%.*g", (ndigit > MAX_NDIGIT)? MAX_NDIGIT : ndigit, number);
10
return buf;
11
}
12
#endif