xref: /dflybsd-src/games/hack/hack.version.c (revision 4318c66eac379e15105fe145d406dfef81b795f6)
1*4318c66eSSascha Wildner /*	$NetBSD: hack.version.c,v 1.6 2009/06/07 18:30:39 dholland Exp $	*/
2*4318c66eSSascha Wildner 
3*4318c66eSSascha Wildner /*
4*4318c66eSSascha Wildner  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
5*4318c66eSSascha Wildner  * Amsterdam
6*4318c66eSSascha Wildner  * All rights reserved.
7*4318c66eSSascha Wildner  *
8*4318c66eSSascha Wildner  * Redistribution and use in source and binary forms, with or without
9*4318c66eSSascha Wildner  * modification, are permitted provided that the following conditions are
10*4318c66eSSascha Wildner  * met:
11*4318c66eSSascha Wildner  *
12*4318c66eSSascha Wildner  * - Redistributions of source code must retain the above copyright notice,
13*4318c66eSSascha Wildner  * this list of conditions and the following disclaimer.
14*4318c66eSSascha Wildner  *
15*4318c66eSSascha Wildner  * - Redistributions in binary form must reproduce the above copyright
16*4318c66eSSascha Wildner  * notice, this list of conditions and the following disclaimer in the
17*4318c66eSSascha Wildner  * documentation and/or other materials provided with the distribution.
18*4318c66eSSascha Wildner  *
19*4318c66eSSascha Wildner  * - Neither the name of the Stichting Centrum voor Wiskunde en
20*4318c66eSSascha Wildner  * Informatica, nor the names of its contributors may be used to endorse or
21*4318c66eSSascha Wildner  * promote products derived from this software without specific prior
22*4318c66eSSascha Wildner  * written permission.
23*4318c66eSSascha Wildner  *
24*4318c66eSSascha Wildner  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
25*4318c66eSSascha Wildner  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
26*4318c66eSSascha Wildner  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
27*4318c66eSSascha Wildner  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
28*4318c66eSSascha Wildner  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29*4318c66eSSascha Wildner  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
30*4318c66eSSascha Wildner  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31*4318c66eSSascha Wildner  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32*4318c66eSSascha Wildner  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33*4318c66eSSascha Wildner  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
34*4318c66eSSascha Wildner  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35*4318c66eSSascha Wildner  */
36*4318c66eSSascha Wildner 
37*4318c66eSSascha Wildner /*
38*4318c66eSSascha Wildner  * Copyright (c) 1982 Jay Fenlason <hack@gnu.org>
39*4318c66eSSascha Wildner  * All rights reserved.
40*4318c66eSSascha Wildner  *
41*4318c66eSSascha Wildner  * Redistribution and use in source and binary forms, with or without
42*4318c66eSSascha Wildner  * modification, are permitted provided that the following conditions
43*4318c66eSSascha Wildner  * are met:
44*4318c66eSSascha Wildner  * 1. Redistributions of source code must retain the above copyright
45*4318c66eSSascha Wildner  *    notice, this list of conditions and the following disclaimer.
46*4318c66eSSascha Wildner  * 2. Redistributions in binary form must reproduce the above copyright
47*4318c66eSSascha Wildner  *    notice, this list of conditions and the following disclaimer in the
48*4318c66eSSascha Wildner  *    documentation and/or other materials provided with the distribution.
49*4318c66eSSascha Wildner  * 3. The name of the author may not be used to endorse or promote products
50*4318c66eSSascha Wildner  *    derived from this software without specific prior written permission.
51*4318c66eSSascha Wildner  *
52*4318c66eSSascha Wildner  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
53*4318c66eSSascha Wildner  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
54*4318c66eSSascha Wildner  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
55*4318c66eSSascha Wildner  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
56*4318c66eSSascha Wildner  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
57*4318c66eSSascha Wildner  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
58*4318c66eSSascha Wildner  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
59*4318c66eSSascha Wildner  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
60*4318c66eSSascha Wildner  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
61*4318c66eSSascha Wildner  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62*4318c66eSSascha Wildner  */
63984263bcSMatthew Dillon 
64984263bcSMatthew Dillon #include "date.h"
65c7106d58SPeter Avalos #include "hack.h"
66*4318c66eSSascha Wildner #include "extern.h"
67984263bcSMatthew Dillon 
68c7106d58SPeter Avalos int
doversion(void)69c7106d58SPeter Avalos doversion(void)
70c7106d58SPeter Avalos {
71984263bcSMatthew Dillon 	pline("%s 1.0.3 - last edit %s.", (
72984263bcSMatthew Dillon #ifdef QUEST
73984263bcSMatthew Dillon 					   "Quest"
74984263bcSMatthew Dillon #else
75984263bcSMatthew Dillon 					   "Hack"
76304d60d9SEirik Nygaard #endif	/* QUEST */
77984263bcSMatthew Dillon 					   ), datestring);
78984263bcSMatthew Dillon 	return (0);
79984263bcSMatthew Dillon }
80