Carbon


FSGetForkSize

Header: Files.h Carbon status: Supported

Returns the size of an open fork.

OSErr FSGetForkSize (
    SInt16 forkRefNum, 
    SInt64 *forkSize
);
Parameter descriptions
forkRefNum

The reference number of the fork

forkSize

On return, a pointer to the logical size of the fork, in bytes. The size returned is the total number of bytes that can be read from the fork; the amount of space actually allocated on the volume (the physcial size) will probably be larger.

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 9, or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)