Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>getdisk() get current drive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
getdisk()                Get Current Drive

 #include   <dir.h>

 int        getdisk(void);

    getdisk() gets the current drive.

    Returns:    The current drive is returned: 0 = A, 1 = B, 2 = C, etc.

      Notes:    This is equivalent to DOS function 19h.

See Also: getcurdir() setdisk()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson