MCPcopy Index your code
hub / github.com/NetHack/NetHack / version_string

Function version_string

src/version.c:21–31  ·  view source on GitHub ↗

fill buffer with short version (so caller can avoid including date.h) * buf cannot be NULL */

Source from the content-addressed store, hash-verified

19/* fill buffer with short version (so caller can avoid including date.h)
20 * buf cannot be NULL */
21char *
22version_string(char *buf, size_t bufsz)
23{
24 Snprintf(buf, bufsz, "%s",
25 ((nomakedefs.version_string && nomakedefs.version_string[0])
26 ? nomakedefs.version_string
27 /* in case we try to write a paniclog entry after releasing
28 the 'nomakedefs' data */
29 : mdlib_version_string(buf, ".")));
30 return buf;
31}
32
33/* fill and return the given buffer with the long nethack version string */
34char *

Callers 7

qt_plsel.cppFile · 0.85
qt_bind.cppFile · 0.85
submit_web_reportFunction · 0.85
dump_fmtstrFunction · 0.85
paniclogFunction · 0.85
aboutMsgFunction · 0.85

Calls 1

mdlib_version_stringFunction · 0.85

Tested by

no test coverage detected