aboutsummaryrefslogtreecommitdiff
path: root/misc/efgcvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/efgcvt.c')
-rw-r--r--misc/efgcvt.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/misc/efgcvt.c b/misc/efgcvt.c
index 05a4253ac2..10a451152f 100644
--- a/misc/efgcvt.c
+++ b/misc/efgcvt.c
@@ -64,9 +64,8 @@ static char ECVT_BUFFER[MAXDIG];
libc_freeres_ptr (static char *FCVT_BUFPTR);
char *
-__APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign)
- FLOAT_TYPE value;
- int ndigit, *decpt, *sign;
+__APPEND (FUNC_PREFIX, fcvt) (FLOAT_TYPE value, int ndigit, int *decpt,
+ int *sign)
{
if (FCVT_BUFPTR == NULL)
{
@@ -87,9 +86,8 @@ __APPEND (FUNC_PREFIX, fcvt) (value, ndigit, decpt, sign)
char *
-__APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign)
- FLOAT_TYPE value;
- int ndigit, *decpt, *sign;
+__APPEND (FUNC_PREFIX, ecvt) (FLOAT_TYPE value, int ndigit, int *decpt,
+ int *sign)
{
(void) __APPEND (FUNC_PREFIX, ecvt_r) (value, ndigit, decpt, sign,
ECVT_BUFFER, MAXDIG);
@@ -98,10 +96,7 @@ __APPEND (FUNC_PREFIX, ecvt) (value, ndigit, decpt, sign)
}
char *
-__APPEND (FUNC_PREFIX, gcvt) (value, ndigit, buf)
- FLOAT_TYPE value;
- int ndigit;
- char *buf;
+__APPEND (FUNC_PREFIX, gcvt) (FLOAT_TYPE value, int ndigit, char *buf)
{
sprintf (buf, "%.*" FLOAT_FMT_FLAG "g", MIN (ndigit, NDIGIT_MAX), value);
return buf;