home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / dos / dir / getdisk.txh < prev    next >
Encoding:
Text File  |  1995-07-23  |  413 b   |  26 lines

  1. @c ----------------------------------------------------------------------
  2. @node getdisk, dos
  3. @subheading Syntax
  4.  
  5. @example
  6. #include <dir.h>
  7.  
  8. int getdisk(void);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. Gets the current disk (0=A).
  14.  
  15. @xref{setdisk}.
  16.  
  17. @subheading Return Value
  18.  
  19. The current disk number.
  20.  
  21. @subheading Example
  22.  
  23. @example
  24. printf("This drive is %c:\n", getdisk() + 'A');
  25. @end example
  26.