diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-08-15 23:40:29 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-08-15 23:40:29 +0200 |
commit | cefdc62538a9882db028f6a9d2e37ad1b2d5966f (patch) | |
tree | ff48ae4e98e083e4d0007226c328683fa3c79f07 /INSTALL | |
parent | 3e2f63dcd04d665466f432a5d3690f880d4ed9ec (diff) | |
download | gmp-cefdc62538a9882db028f6a9d2e37ad1b2d5966f.tar.gz |
* INSTALL: Use gmp_printf.
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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); |