Wikia

Wikihack

Source:NetHack 3.0.0/version.c

2,032pages on
this wiki
Talk0

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.
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.   }

Around Wikia's network

Random Wiki