DV.SIZ - determine size of a mass storage device.

Usage:

size = dv.siz(sctaddr [, error]);

Where:

sctaddr
is the SCT address of the device whose size is wanted.
error
is an error routine which will be called if the device is not a mass storage device or if it is released. This defaults to .ERROR.
size
is the size of the device in llinks. If the device is released or is not a mass storage device, and the supplied "error" routine does not terminate the program, a value of zero is returned.

Description:

DV.SIZ is used to determine the size of a mass storage device in llinks.

Normally, if DV.SIZ is passed an SCT address that is not an assigned mass storage device, it will terminate the program by calling ERROR. However, if you pass an "error" function that does not terminate the program, you can use DV.SIZ to test that a device is an assigned mass storage device. By using an initializing call to GT.DSZ, you can make DV.SIZ ignore the fact that a device is released.

See Also:

expl b syslib gt.dsz

Copyright © 1996, Thinkage Ltd.