Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_diskclus() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_DISKCLUS()

 DESCRIPTION

 C_DISKCLUS() returns the number of clusters on the specified disk drive.

 NOTES

 To calculate the total bytes on the drive multiply the number of
 clusters (C_DISKCLUS) by the number of sectors per cluster
 (C_DISKSECT) by the number of bytes per sector (C_DISKBYTE).

 SYNTAX

 C_DISKCLUS([drive])

 PARAMETERS

 drive (N) is the disk drive to check.  The drive is specified as a
 drive number (0=default, 1=A, 2=B, 3=C, etc.).  If the drive
 argument is not specified, the default of drive will be used.

 RETURNS

 C_DISKCLUS() returns the number of clusters on the specified drive.

 EXAMPLES

 c_diskclus(1)  --> 2371    && A: drive (1.2 Mb)
 c_disksect(1)  --> 1
 c_diskbyte(1)  --> 512

 c_diskclus(2)  --> 2847    && B: drive (1.4 Mb)
 c_disksect(2)  --> 1
 c_diskbyte(2)  --> 512

 c_diskclus(3)  --> 16326   && C: drive (32 Mb)
 c_disksect(3)  --> 4
 c_diskbyte(3)  --> 512


See Also: C_DISKSECT() C_DISKBYTE() C_FSPACE() C_TSPACE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson