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

Function tmpdup

util/makedefs.c:2363–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2361}
2362
2363static char *
2364tmpdup(const char *str)
2365{
2366 static char buf[128];
2367
2368 if (!str)
2369 return (char *) 0;
2370 (void) strncpy(buf, str, 127);
2371 return buf;
2372}
2373#endif /* OLD_MAKEDEFS_OPTIONS */
2374
2375/* the STRICT_REF_DEF checking is way out of date... */

Callers 2

do_permonstFunction · 0.85
do_objsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected