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

Function macwrite

outdated/sys/mac/macfile.c:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322#endif /* 0 */
323
324int
325macwrite(int fd, void *ptr, unsigned len)
326{
327 long amt = len;
328
329 if (IsHandleFile(fd))
330 return -1;
331 if (FSWrite(fd, &amt, ptr) == noErr)
332 return (amt);
333 else
334 return (-1);
335}
336
337long
338macseek(int fd, long where, short whence)

Callers

nothing calls this directly

Calls 1

IsHandleFileFunction · 0.85

Tested by

no test coverage detected