Fandom

Wikihack

Source:NetHack 3.0.0/version.c

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Also on Fandom

Random Wiki