"Fossies" - the Fresh Open Source Software Archive

Member "bc-1.06.95/bc/warranty.c" (5 Sep 2006, 2543 Bytes) of package /linux/misc/old/bc-1.06.95.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "warranty.c" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.06.95_vs_1.07.

    1 /* warranty.c: warranty routines for bc. */
    2 
    3 /*  This file is part of GNU bc.
    4     Copyright (C) 1991-1994, 1997, 2000, 2003, 2004 Free Software Foundation, Inc.
    5 
    6     This program is free software; you can redistribute it and/or modify
    7     it under the terms of the GNU General Public License as published by
    8     the Free Software Foundation; either version 2 of the License , or
    9     (at your option) any later version.
   10 
   11     This program is distributed in the hope that it will be useful,
   12     but WITHOUT ANY WARRANTY; without even the implied warranty of
   13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14     GNU General Public License for more details.
   15 
   16     You should have received a copy of the GNU General Public License
   17     along with this program; see the file COPYING.  If not, write to
   18       The Free Software Foundation, Inc.
   19       51 Franklin Street, Fifth Floor
   20       Boston, MA 02110-1301  USA
   21 
   22     You may contact the author by:
   23        e-mail:  philnelson@acm.org
   24       us-mail:  Philip A. Nelson
   25                 Computer Science Department, 9062
   26                 Western Washington University
   27                 Bellingham, WA 98226-9062
   28        
   29 *************************************************************************/
   30 
   31 
   32 #include "bcdefs.h"
   33 #include "proto.h"
   34 
   35 
   36 /* Print the welcome banner. */
   37 
   38 void 
   39 welcome()
   40 {
   41   printf ("This is free software with ABSOLUTELY NO WARRANTY.\n");
   42   printf ("For details type `warranty'. \n");
   43 }
   44 
   45 /* Print out the version information. */
   46 void
   47 show_bc_version()
   48 {
   49   printf("%s %s\n%s\n", PACKAGE, VERSION, BC_COPYRIGHT);
   50 }
   51 
   52 
   53 /* Print out the warranty information. */
   54 
   55 void 
   56 warranty(prefix)
   57      const char *prefix;
   58 {
   59   printf ("\n%s", prefix);
   60   show_bc_version ();
   61   printf ("\n"
   62 "    This program is free software; you can redistribute it and/or modify\n"
   63 "    it under the terms of the GNU General Public License as published by\n"
   64 "    the Free Software Foundation; either version 2 of the License , or\n"
   65 "    (at your option) any later version.\n\n"
   66 "    This program is distributed in the hope that it will be useful,\n"
   67 "    but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
   68 "    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
   69 "    GNU General Public License for more details.\n\n"
   70 "    You should have received a copy of the GNU General Public License\n"
   71 "    along with this program. If not, write to\n\n"
   72 "       The Free Software Foundation, Inc.\n"
   73 "       51 Franklin Street, Fifth Floor\n"
   74 "       Boston, MA 02110-1301  USA\n\n");
   75 }