CFSetGetValueIfPresent

Header: CFSet.h Carbon status: Supported

Specifies whether a value exists in a CFSet object and, if it does, returns that value indirectly.

Boolean CFSetGetValueIfPresent (
    CFSetRef theSet, 
    const void *candidate, 
    void **value
);
Parameter descriptions
theSet

Pass a reference to the CFSet object that you want to obtain the value from.

candidate

Pass a pointer to the value that you want to query the CFSet about.

value

Declare a variable of the type appropriate to the value and pass a pointer to it. Upon return the value variable contains a pointer to the value from the CFSet if it exists in the collection; otherwise, it returns NULL.

function result

TRUE if the value exists in the CFSet object, otherwise FALSE.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


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