summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-29 21:11:36 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-29 21:11:36 +0000
commitc85e07fe25123c39fdaf8a6326c02c0baf0c8492 (patch)
tree2fb72739325508c3485258305d065837ef04293f /libc
parentc29aa5a4662a1593dc9967abeed38c0456e20360 (diff)
Fix prototype
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/gcvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/gcvt.c b/libc/stdlib/gcvt.c
index 4ce5cf4ee..71bfcec80 100644
--- a/libc/stdlib/gcvt.c
+++ b/libc/stdlib/gcvt.c
@@ -1,9 +1,9 @@
-
+#include <stdio.h>
#include <stdlib.h>
#ifdef __UCLIBC_HAS_FLOATS__
#define MAX_NDIGIT 17
-char * gcvt(double number, size_t ndigit, char* buf)
+char *gcvt (double number, int ndigit, char *buf)
{
sprintf(buf, "%.*g", (ndigit > MAX_NDIGIT)? MAX_NDIGIT : ndigit, number);
return buf;