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

Function rsrc_dlb_fread

outdated/sys/mac/macfile.c:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408int
409rsrc_dlb_fread(char *buf, int size, int quan, dlb *dp)
410{
411 int nread;
412
413 if (size < 0 || quan < 0)
414 return 0;
415 nread = ReadHandleFile(dp->fd, buf, (unsigned) size * (unsigned) quan);
416
417 return nread / size; /* # of whole pieces (== quan in normal case) */
418}
419
420int
421rsrc_dlb_fseek(dlb *dp, long pos, int whence)

Callers

nothing calls this directly

Calls 1

ReadHandleFileFunction · 0.85

Tested by

no test coverage detected