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

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