summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-08-15 23:40:29 +0200
committerKevin Ryde <user42@zip.com.au>2001-08-15 23:40:29 +0200
commitcefdc62538a9882db028f6a9d2e37ad1b2d5966f (patch)
treeff48ae4e98e083e4d0007226c328683fa3c79f07 /INSTALL
parent3e2f63dcd04d665466f432a5d3690f880d4ed9ec (diff)
downloadgmp-cefdc62538a9882db028f6a9d2e37ad1b2d5966f.tar.gz
* INSTALL: Use gmp_printf.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL10
1 files changed, 4 insertions, 6 deletions
diff --git a/INSTALL b/INSTALL
index 8bb259779..c68992757 100644
--- a/INSTALL
+++ b/INSTALL
@@ -61,9 +61,8 @@ command line, multiplies them, and prints the result to stdout.
/* Multiply a and b and put the result in p */
mpz_mul (p, a, b);
- /* Print p in base 10 */
- mpz_out_str (stdout, 10, p);
- fputc ('\n', stdout);
+ /* Print p in decimal */
+ gmp_printf ("%Zd\n", p);
/* Clear out variables */
mpz_clear (a);
@@ -100,9 +99,8 @@ avoided. An experienced GMP user might write:
/* Multiply a and b and put the result in p */
mpz_mul (p, a, b);
- /* Print p in base 10 */
- mpz_out_str (stdout, 10, p);
- fputc ('\n', stdout);
+ /* Print p in decimal */
+ gmp_printf ("%Zd\n", p);
/* Since we're about to exit, no need to clear out variables */
exit (0);