Carbon


CFNumberGetValue

Header: CFNumber.h Carbon status: Supported

Obtains the value of the specified CFNumber object.

Boolean CFNumberGetValue (
    CFNumberRef number, 
    CFNumberType numType, 
    void *valuePtr
);
number

The CFNumber object whose value you wish to obtain.

numType

A constant indicating the data type you wish returned to you. See CFNumber Type Flags for a list of possible values.

valuePtr

A pointer to the storage that will receive the CFNumber object's value.

function result

TRUE if the operation was successful. FALSE if an error occurred.

DISCUSSION

If a conversion is necessary, the conversion rules follow human expectation and not C promotion and truncation rules. If the conversion is lossy, or the value is out of range, FALSE is returned.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when CoreFoundationLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CoreFoundationLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 3/8/2000)