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

Function lib_dlb_fopen

src/dlb.c:272–288  ·  view source on GitHub ↗

ARGSUSED*/

Source from the content-addressed store, hash-verified

270
271/*ARGSUSED*/
272staticfn boolean
273lib_dlb_fopen(dlb *dp, const char *name, const char *mode UNUSED)
274{
275 long start, size;
276 library *lp;
277
278 /* look up file in directory */
279 if (find_file(name, &lp, &start, &size)) {
280 dp->lib = lp;
281 dp->start = start;
282 dp->size = size;
283 dp->mark = 0;
284 return TRUE;
285 }
286
287 return FALSE; /* failed */
288}
289
290/*ARGUSED*/
291staticfn int

Callers

nothing calls this directly

Calls 1

find_fileFunction · 0.85

Tested by

no test coverage detected