File: squidcore.c

package info (click to toggle)
biosquid 1.9g%2Bcvs20050121-15.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: ansic: 12,750; sh: 1,412; perl: 243; makefile: 231
file content (49 lines) | stat: -rw-r--r-- 1,627 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/************************************************************
 * @LICENSE@
 ************************************************************/

/* squidcore.c
 * SRE, Sun Jun 20 17:19:04 1999 [Graeme's kitchen]
 * 
 * Core functions for SQUID library.
 * CVS $Id: squidcore.c,v 1.4 2003/09/27 20:31:15 eddy Exp $
 */

#include "squidconf.h"
#include "squid.h"

#include <stdio.h>

/* Function: SqdBanner()
 * 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 in squid.
 *           
 *    Expects to be able to pick up preprocessor #define's from squidconf.h:
 *    symbol           example
 *    ------           --------------  
 *    SQUID_VERSION    "2.0.42"
 *    SQUID_DATE       "April 1999"
 *    SQUID_COPYRIGHT  "Copyright (C) 1992-1999 Washington University School of Medicine"
 *    SQUID_LICENSE    "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.
 * 
 * Args:     fp     - where to print it
 *           banner - one-line program description, e.g.:
 *                    "foobar - make bars from foo with elan" 
 * Returns:  (void)
 */
void
SqdBanner(FILE *fp, char *banner)
{
  fprintf(fp, "%s\n", banner);
  fprintf(fp, "SQUID %s (%s)\n", SQUID_VERSION, SQUID_DATE);
  fprintf(fp, "%s\n", SQUID_COPYRIGHT);
  fprintf(fp, "%s\n", SQUID_LICENSE);
  fprintf(fp, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
}