home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / GNU / GPTX01AS.ZIP / VERSION.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-05  |  1.9 KB  |  75 lines

  1. /* Permuted index, with keywords in their context.
  2.    Copyright (C) 1990 Free Software Foundation, Inc.
  3.    Francois Pinard <pinard@iro.umontreal.ca>, 1990.
  4.  
  5.    $Id$
  6. */
  7.  
  8. #include <stdio.h>
  9.  
  10.  
  11. /* Package name.  */
  12.  
  13. #define PACKAGE "gptx"
  14.  
  15.  
  16. /* Version numbers.  These three numbers are separated by two periods: the
  17.    major revision number, the minor revision number and installation number.
  18.    This last number is modified in the following #define, right in this
  19.    file, from the Makefile and version.awk.  See this script for further
  20.    details.  */
  21.  
  22. #define VERSION "0.1"
  23.  
  24.  
  25. /* Short Copyright.  */
  26.  
  27. #define COPYRIGHT "Copyright (C) 1990 Free Software Foundation, Inc."
  28.  
  29.  
  30. /* Global variables.  */
  31.  
  32. extern char *program_name;
  33.  
  34.  
  35. /* Prints package name and version, and the short Copyright.  */
  36.  
  37. #ifdef __STDC__
  38. void print_version (void)
  39. #else
  40. void
  41. print_version ()
  42. #endif
  43. {
  44.   fprintf (stderr, "%s (%s %s)\n", program_name, PACKAGE, VERSION);
  45.   fprintf (stderr, "%s\n", COPYRIGHT);
  46.   fprintf (stderr, "\n");
  47. }
  48.  
  49.  
  50. /* Prints a more detailed Copyright.  */
  51.  
  52. #ifdef __STDC__
  53. void print_copyright ()
  54. #else
  55. void
  56. print_copyright ()
  57. #endif
  58. {
  59.   fprintf (stderr, "\
  60. This program is free software; you can redistribute it and/or modify\n\
  61. it under the terms of the GNU General Public License as published by\n\
  62. the Free Software Foundation; either version 1, or (at your option)\n\
  63. any later version.\n\
  64. \n\
  65. This program is distributed in the hope that it will be useful,\n\
  66. but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
  67. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
  68. GNU General Public License for more details.\n\
  69. \n\
  70. You should have received a copy of the GNU General Public License\n\
  71. along with this program; if not, write to the Free Software\n\
  72. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\
  73. \n");
  74. }
  75.