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

Function set_levelfile_name

util/recover.c:168–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166static char lock[256];
167
168void
169set_levelfile_name(int lev)
170{
171 char *tf;
172
173 tf = strrchr(lock, '.');
174 if (!tf)
175 tf = lock + strlen(lock);
176 (void) sprintf(tf, ".%d", lev);
177#ifdef VMS
178 (void) strcat(tf, ";1");
179#endif
180}
181
182int
183open_levelfile(int lev)

Callers 2

open_levelfileFunction · 0.70
restore_savefileFunction · 0.70

Calls 1

strrchrFunction · 0.85

Tested by

no test coverage detected