summaryrefslogtreecommitdiff
path: root/tests/cmp_str.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-18 15:27:33 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-18 15:27:33 +0000
commit8328a51518450ad8ddb86e38e7952e28065ff22a (patch)
tree2c3c9b33905b14a3400072fcbdd5871022c05e14 /tests/cmp_str.c
parent5ac20e1d0850c56917aeccaabc9eb0e602a4b6b8 (diff)
downloadmpfr-8328a51518450ad8ddb86e38e7952e28065ff22a.tar.gz
Updated copyright line.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3724 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/cmp_str.c')
-rw-r--r--tests/cmp_str.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/cmp_str.c b/tests/cmp_str.c
index bcfe58859..2f805a33c 100644
--- a/tests/cmp_str.c
+++ b/tests/cmp_str.c
@@ -1,6 +1,6 @@
/* mpfr_cmp_str -- compare a floating-point number with a string.
-Copyright 2004 Free Software Foundation, Inc.
+Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of the MPFR Library.
@@ -21,17 +21,16 @@ MA 02110-1301, USA. */
#include "mpfr-test.h"
-int mpfr_cmp_str(mpfr_srcptr x, const char *s, int base, mp_rnd_t rnd)
+int
+mpfr_cmp_str (mpfr_srcptr x, const char *s, int base, mp_rnd_t rnd)
{
mpfr_t y;
int res;
- MPFR_ASSERTN (!MPFR_IS_NAN(x));
- mpfr_init2(y, MPFR_PREC(x) );
- mpfr_set_str(y, s, base, rnd);
- res = mpfr_cmp(x,y);
- mpfr_clear(y);
+ MPFR_ASSERTN (!MPFR_IS_NAN (x));
+ mpfr_init2 (y, MPFR_PREC(x));
+ mpfr_set_str (y, s, base, rnd);
+ res = mpfr_cmp (x,y);
+ mpfr_clear (y);
return res;
}
-
-