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

Function rsrc_dlb_fgetc

outdated/sys/mac/macfile.c:458–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458int
459rsrc_dlb_fgetc(dlb *dp)
460{
461 HandleFile *hfp = IsHandleFile(dp->fd);
462 int ret;
463
464 if (!hfp || hfp->size <= hfp->mark)
465 return EOF;
466
467 ret = *(unsigned char *) (*hfp->data + hfp->mark);
468 hfp->mark++;
469 return ret;
470}
471
472long
473rsrc_dlb_ftell(dlb *dp)

Callers

nothing calls this directly

Calls 1

IsHandleFileFunction · 0.85

Tested by

no test coverage detected