summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-12-03 00:39:07 +0100
committerKevin Ryde <user42@zip.com.au>2002-12-03 00:39:07 +0100
commitaf9765db4d9f112593b987104bd380068a5a055d (patch)
tree964122f53353426bcd204f651c7a0d93fbaa01d2 /INSTALL
parent5c52f408011fbaefc92b388f769ad5b335519fda (diff)
downloadgmp-af9765db4d9f112593b987104bd380068a5a055d.tar.gz
* INSTALL: Use return rather than exit in the example programs.
Suggested by Richard Dawe.
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL8
1 files changed, 4 insertions, 4 deletions
diff --git a/INSTALL b/INSTALL
index 268bf9f05..1dd70e9b3 100644
--- a/INSTALL
+++ b/INSTALL
@@ -68,7 +68,7 @@ command line, multiplies them, and prints the result to stdout.
if (argc != 3)
{
printf ("Usage: %s <number> <number>\n", argv[0]);
- exit (1);
+ return 1;
}
/* Initialize variables */
@@ -90,7 +90,7 @@ command line, multiplies them, and prints the result to stdout.
mpz_clear (a);
mpz_clear (b);
mpz_clear (p);
- exit (0);
+ return 0;
}
@@ -109,7 +109,7 @@ avoided. An experienced GMP user might write:
if (argc != 3)
{
printf ("Usage: %s <number> <number>\n", argv[0]);
- exit (1);
+ return 1;
}
/* Initialize and assign a and b from base 10 strings in argv */
@@ -125,7 +125,7 @@ avoided. An experienced GMP user might write:
gmp_printf ("%Zd\n", p);
/* Since we're about to exit, no need to clear out variables */
- exit (0);
+ return 0;
}