Dfree
Get Disk Free Space
Dfree()
Opcode = 54 ($36)
The Dfree() function is used to find the amount of free space left on a
disk.
C macro format
long buffer[4];
int drivenum;
Dfree(buffer, drivenum);
Machine language format
move.w #drivenum, - (sp)
move.l buffer, - (sp)
move.w #$36, - (sp)
trap #1
addq.l #8,sp
Inputs
drivenum word
The number of the drive to check
buffer long
(0 = drive A:, 1 = drive B:, and so on).
A pointer to a buffer that will store the
four longwords of data returned by this
call.
Contents of the buffer pointed to by buffer:
Longword Number Contents
0
1
2
3
Number of free clusters
Total number of clusters
Sector size (in bytes)
Cluster size (in sectors)
Results
None
266