Function DiskSize (Drive: byte) : longint;
DiskSize returns the total size (in bytes) of a disk. The parameter Drive indicates which disk should be checked. This parameter is 1 for floppy a:, 2 for floppy b:, etc. A value of 0 returns the size of the current drive.
For LINUX only:
The diskfree and disksize functions need a file on the specified drive, since this
is required for the statfs system call.
These filenames are set in the initialization of the dos unit, and have
been preset to :
These settings can be coded in dos.pp, in the initialization part.
-1 when a failure occurs, or an invalid drive number is given.
For an example, see DiskFree.