http://www.ousob.com --- Legacy Redefined #include <dos.h> #include <extend50.h> char a_drive[] = " ABCDEFGHIJKLMNOPQRSTUVWXYZ"; CLIPPER b_fspace() { unsigned drive_id; long fspace = 0; union REGS iregs, oregs; _dos_getdrive(&drive_id); iregs.h.ah = 0x36; iregs.h.dl = a_drive[drive_id] - 'A' + 1; intdos(&iregs,&oregs); fspace=(long) ((long) oregs.x.ax * (long) oregs.x.bx * (long) oregs.x.cx); _retnl(fspace); }