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

Function freediskspace

sys/msdos/msdos.c:363–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361
362#if 0
363static long
364freediskspace(char *path)
365{
366 union REGS regs;
367
368 regs.h.ah = FREESPACE;
369 if (path[0] && path[1] == ':')
370 regs.h.dl = (toupper(path[0]) - 'A') + 1;
371 else
372 regs.h.dl = 0;
373 intdos(&regs, &regs);
374 if (regs.x.ax == 0xFFFF)
375 return -1L; /* bad drive number */
376 else
377 return ((long) regs.x.bx * regs.x.cx * regs.x.ax);
378}
379#endif /* 0 */
380
381#ifndef __GO32__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected