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

Function close_check

src/sfstruct.c:403–412  ·  view source on GitHub ↗

Let caller know that bclose() should handle it (TRUE) */

Source from the content-addressed store, hash-verified

401
402/* Let caller know that bclose() should handle it (TRUE) */
403boolean
404close_check(int fd)
405{
406 int idx = getidx(fd, NOSLOT);
407 boolean retval = FALSE;
408
409 if (idx >= 0)
410 retval = TRUE;
411 return retval;
412}
413
414void
415bufon(int fd)

Callers 1

nhcloseFunction · 0.85

Calls 1

getidxFunction · 0.85

Tested by

no test coverage detected