summaryrefslogtreecommitdiff
path: root/get_str.c
diff options
context:
space:
mode:
authorhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-25 17:36:57 +0000
committerhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-25 17:36:57 +0000
commit28500f18c3c16fe509a2dd55dc1b2acf6555cb19 (patch)
treeda68fbafce63f6e18bb7c1407363678ead5e41ae /get_str.c
parentc52e3b07b1fa741f5d18ffaf89b6776c6090edfd (diff)
downloadmpfr-28500f18c3c16fe509a2dd55dc1b2acf6555cb19.tar.gz
Prototypes et quelques causes de warnings corriges.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@205 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'get_str.c')
-rw-r--r--get_str.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/get_str.c b/get_str.c
index d7dad7398..8b70c7bdf 100644
--- a/get_str.c
+++ b/get_str.c
@@ -13,9 +13,18 @@
For op = 3.1416 we get str = "31416" and expptr=1.
*/
-
+#if __STDC__
char *mpfr_get_str(char *str, mp_exp_t *expptr, int base, size_t n,
mpfr_srcptr op, unsigned char rnd_mode)
+#else
+char *mpfr_get_str(str, expptr, base, n, op, rnd_mode)
+ char *str;
+ mp_exp_t *expptr;
+ int base;
+ size_t n;
+ mpfr_srcptr op;
+ unsigned char rnd_mode;
+#endif
{
double d; long e, q, neg, p, err, prec, sh; mpfr_t a, b; mpz_t bz;
char *str0; unsigned char rnd1; int f, pow2;