Source:NetHack 3.0.0/version.c

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to version.c from the source code of NetHack 3.0.0. To link to a particular line, write [[NetHack 3.0.0/version.c#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1.    /*	SCCS Id: @(#)version.c	3.0	89/06/12
2.    /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #include	"hack.h"
6.    #include	"date.h"
7.    
8.    int
9.    doversion(){
10.   
11.   #ifdef BETA
12.   	pline("%s NetHack Beta Version %s - last build %s.",
13.   #else
14.   	pline("%s NetHack Version %s - last build %s.",
15.   #endif
16.   #if defined(MSDOS)
17.   # if defined(TOS)
18.   		"ST",
19.   # else
20.   #  if defined(AMIGA)
21.   		"Amiga",
22.   #  else
23.   		"PC",
24.   #  endif
25.   # endif
26.   #endif
27.   #ifdef UNIX
28.   		"Unix",
29.   #endif
30.   		VERSION, datestring);
31.   	return 0;
32.   }