Source:NetHack 3.1.0/version.c
Revision as of 07:46, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.1.0/version.c moved to Source:NetHack 3.1.0/version.c: Robot: moved page)
Below is the full text to version.c from the source code of NetHack 3.1.0. To link to a particular line, write [[NetHack 3.1.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.1 92/01/04 */ 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. #ifndef BETA 8. # if defined(MICRO) && !defined(AMIGA) && !defined(TOS) 9. # include "patchlev.h" 10. # else 11. # include "patchlevel.h" 12. # endif 13. #endif 14. 15. int 16. doversion() 17. { 18. #ifdef BETA 19. pline("%s NetHack Beta Version %s - last build %s.", 20. #else 21. pline("%s NetHack Version %s.%d - last build %s.", 22. #endif 23. PORT_ID, VERSION, 24. #ifndef BETA 25. PATCHLEVEL, 26. #endif 27. BUILD_DATE); /* from date.h, generated by 'makedefs' */ 28. return 0; 29. } 30. 31. int 32. doextversion() 33. { 34. display_file(OPTIONS_USED, TRUE); 35. return 0; 36. } 37. 38. #ifdef MICRO 39. boolean 40. comp_times(filetime) 41. long filetime; 42. { 43. return (filetime < BUILD_TIME); 44. } 45. #endif 46. 47. /*version.c*/