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

Function bannerc_string

src/mdlib.c:348–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346/* still within #if MAKDEFS_C || FOR_RUNTIME */
347
348char *
349bannerc_string(char *outbuf, size_t bufsz, const char *build_date)
350{
351 char subbuf[64], versbuf[64];
352
353 subbuf[0] = '\0';
354#ifdef PORT_SUB_ID
355 subbuf[0] = ' ';
356 Strcpy(&subbuf[1], PORT_SUB_ID);
357#endif
358#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
359#if (NH_DEVEL_STATUS == NH_STATUS_BETA)
360 Strcat(subbuf, " Beta");
361#else
362 Strcat(subbuf, " Work-in-progress");
363#endif
364#endif
365
366 Snprintf(outbuf, bufsz, " Version %s %s%s, %s %s.",
367 mdlib_version_string(versbuf, "."), PORT_ID, subbuf,
368 date_via_env ? "revised" : "built", build_date);
369 return outbuf;
370}
371
372#ifndef HAS_NO_MKSTEMP
373#ifdef _MSC_VER

Callers 2

populate_nomakedefsFunction · 0.85
do_dateFunction · 0.85

Calls 1

mdlib_version_stringFunction · 0.85

Tested by

no test coverage detected