diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-12-03 00:39:07 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-12-03 00:39:07 +0100 |
commit | af9765db4d9f112593b987104bd380068a5a055d (patch) | |
tree | 964122f53353426bcd204f651c7a0d93fbaa01d2 /INSTALL | |
parent | 5c52f408011fbaefc92b388f769ad5b335519fda (diff) | |
download | gmp-af9765db4d9f112593b987104bd380068a5a055d.tar.gz |
* INSTALL: Use return rather than exit in the example programs.
Suggested by Richard Dawe.
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |