MCPcopy Create free account
hub / github.com/NetHack/NetHack / doversion

Function doversion

src/version.c:155–165  ·  view source on GitHub ↗

the #versionshort command */

Source from the content-addressed store, hash-verified

153
154/* the #versionshort command */
155int
156doversion(void)
157{
158 char buf[BUFSZ];
159
160 if (iflags.menu_requested)
161 return doextversion();
162
163 pline("%s", getversionstring(buf, sizeof buf));
164 return ECMD_OK;
165}
166
167/* the '#version' command; also a choice for '?' */
168int

Callers 1

aboutNetHackFunction · 0.85

Calls 3

doextversionFunction · 0.85
getversionstringFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected