home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / JAZLIB / JZFAT.C < prev    next >
Text File  |  1993-12-01  |  792b  |  28 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │ Title   : jzfat                                 │
  4. │ Purpose : Return file allocation info                      │
  5. │                                         │
  6. │ Notes : fdrive = 0 for default, 1 for A:, etc                  │
  7. │                                         │
  8. │    Written by Jack Zucker - 75766,1336    301-794-5950  on          │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. */
  11. /* requires jaz.h */
  12.  
  13. unsigned char far *jzfat(fdrive , fsect_alloc,fsectsize,fclusters)
  14. unsigned int fdrive ,*fsect_alloc,*fsectsize,*fclusters;
  15. {
  16.   TREG wreg;
  17.  
  18.   wreg.h.ah = 0x1c;
  19.   wreg.h.dl = fdrive;
  20.   msdos(&wreg);
  21.  
  22.   *fsect_alloc = (int) wreg.h.al;
  23.   *fsectsize   = wreg.x.cx;
  24.   *fclusters   = wreg.x.dx;
  25.   return(LPOINTER(char,wreg.x.ds,wreg.x.bx));
  26. }
  27.  
  28.