=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/demos/Attic/isprime.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gmp/demos/Attic/isprime.c 2000/09/09 14:13:19 1.1.1.1 +++ OpenXM_contrib/gmp/demos/Attic/isprime.c 2003/08/25 16:06:03 1.1.1.2 @@ -1,7 +1,7 @@ /* Classify numbers as probable primes, primes or composites. With -q return true if the folowing argument is a (probable) prime. -Copyright (C) 1999, 2000 Free Software Foundation, Inc. +Copyright 1999, 2000, 2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -21,6 +21,15 @@ Place - Suite 330, Boston, MA 02111-1307, USA. */ char *progname; +void +print_usage_and_exit () +{ + fprintf (stderr, "usage: %s -q nnn\n", progname); + fprintf (stderr, "usage: %s nnn ...\n", progname); + exit (-1); +} + +int main (int argc, char **argv) { mpz_t n; @@ -55,11 +64,4 @@ main (int argc, char **argv) puts (" is a prime"); } exit (0); -} - -print_usage_and_exit () -{ - fprintf (stderr, "usage: %s -q nnn\n", progname); - fprintf (stderr, "usage: %s nnn ...\n", progname); - exit (-1); }