/************************************************************ * HMMER - Biological sequence analysis with profile HMMs * Copyright (C) 1992-1999 Washington University School of Medicine * All Rights Reserved * * This source code is distributed under the terms of the * GNU General Public License. See the files COPYING and LICENSE * for details. ************************************************************/ /* squidcore.c * SRE, Sun Jun 20 17:19:04 1999 [Graeme's kitchen] * * Core functions for SQUID library. * RCS $Id: squidcore.c,v 1.1.1.1 2005/03/22 08:34:32 cmzmasek Exp $ */ #include #include "version.h" /* Function: Banner() * Date: SRE, Sun Jun 20 17:19:41 1999 [Graeme's kitchen] * * Purpose: Print a package version and copyright banner. * Used by all the main()'s. * * Expects to be able to pick up defined macros: * macro example * ------ -------------- * PACKAGE "HMMER" * RELEASE "2.0.42" * RELEASEDATE "April 1 1999" * COPYRIGHT "Copyright (C) 1992-1999 Washington University School of Medicine" * LICENSE "HMMER is freely distributed under the GNU General Public License (GPL)." * * This gives us a general mechanism to update release information * without changing multiple points in the code; we can also override * SQUID release data with another package's release data (e.g. * HMMER) just by redefining macros. * * Args: fp - where to print it * banner - one-line program description, e.g.: * "foobar - make bars from foo with elan" * Returns: (void) */ void Banner(FILE *fp, char *banner) { fprintf(fp, "%s\n%s %s (%s)\n%s\n%s\n", banner, PACKAGE, RELEASE, RELEASEDATE, COPYRIGHT, LICENSE); fprintf(fp, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n"); }