@CHIP-RTOS C Library - BIOS API
Report number of free bytes on specified
unsigned long BIOS_Disk_Space (unsigned int drive );
- Drive index:
0 = current drive
1 = A: drive
2 = B: drive
... and so on.
- Available disk space, number of bytes free. This value will
be zero if the drive number specified was invalid.
- This function applies to drives with under 4 Giga-bytes of disk space.
For drives larger than 4 Giga-bytes, the free disk space may exceed
the capacity of this API's 32 bit return value, resulting in a garbage
This API will be required
for drives which exceed the DOS interrupt 0x21
API's reporting capacity of 0xFFFF clusters maximum.
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
for more details.
Supported since or modified in @CHIP-RTOS version
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document