X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/3235b49b8f611e51a2a1e20adb9fc10e9d51056c..6ec3a4cf4aaa7cd375e1aa18f85861986259b8e5:/factorial.c diff --git a/factorial.c b/factorial.c index 789de90..31316a7 100644 --- a/factorial.c +++ b/factorial.c @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: factorial.c,v 1.3 2002/01/13 19:51:59 mdw Exp $ + * $Id: factorial.c,v 1.4 2004/04/08 01:36:15 mdw Exp $ * * Example factorial computation * * (c) 2000 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,33 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * Catacomb is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with Catacomb; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: factorial.c,v $ - * Revision 1.3 2002/01/13 19:51:59 mdw - * Provide proper help and options parsing. Allow more bases. Use - * @mptext@ to read integers for the better base support. - * - * Revision 1.2 2001/06/16 13:22:59 mdw - * Added command-line option to select output radix. - * - * Revision 1.1 2000/07/09 21:30:49 mdw - * Demo program to compute factorials. - * - */ - /*----- Header files ------------------------------------------------------*/ #include "config.h" @@ -63,7 +48,7 @@ static void usage(FILE *fp) { - pquis(fp, "Usage: $ [-r radix] integer\n"); + pquis(fp, "Usage: $ [-r RADIX] INTEGER\n"); } static void version(FILE *fp)