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