initial commit
[jalview.git] / forester / archive / RIO / others / hmmer / squid / squidcore.c
1 /************************************************************
2  * HMMER - Biological sequence analysis with profile HMMs
3  * Copyright (C) 1992-1999 Washington University School of Medicine
4  * All Rights Reserved
5  * 
6  *     This source code is distributed under the terms of the
7  *     GNU General Public License. See the files COPYING and LICENSE
8  *     for details.
9  ************************************************************/
10
11 /* squidcore.c
12  * SRE, Sun Jun 20 17:19:04 1999 [Graeme's kitchen]
13  * 
14  * Core functions for SQUID library.
15  * RCS $Id: squidcore.c,v 1.1.1.1 2005/03/22 08:34:32 cmzmasek Exp $
16  */
17
18 #include <stdio.h>
19 #include "version.h"
20
21 /* Function: Banner()
22  * Date:     SRE, Sun Jun 20 17:19:41 1999 [Graeme's kitchen]
23  *
24  * Purpose:  Print a package version and copyright banner.
25  *           Used by all the main()'s.
26  *           
27  *           Expects to be able to pick up defined macros:
28  *           macro         example
29  *           ------        --------------  
30  *           PACKAGE       "HMMER"
31  *           RELEASE       "2.0.42"
32  *           RELEASEDATE   "April 1 1999"
33  *           COPYRIGHT     "Copyright (C) 1992-1999 Washington University School of Medicine"
34  *           LICENSE       "HMMER is freely distributed under the GNU General Public License (GPL)."
35  *           
36  *           This gives us a general mechanism to update release information
37  *           without changing multiple points in the code; we can also override
38  *           SQUID release data with another package's release data (e.g.
39  *           HMMER) just by redefining macros.
40  * 
41  * Args:     fp     - where to print it
42  *           banner - one-line program description, e.g.:
43  *                    "foobar - make bars from foo with elan" 
44  * Returns:  (void)
45  */
46 void
47 Banner(FILE *fp, char *banner)
48 {
49   fprintf(fp, "%s\n%s %s (%s)\n%s\n%s\n", banner, PACKAGE, RELEASE, RELEASEDATE, COPYRIGHT, LICENSE);
50   fprintf(fp, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
51 }
52
53