CFDictionaryGetCountOfValue

Header: CFDictionary.h Carbon status: Supported

Counts the number of times the given value occurs in the dictionary.

CFIndex CFDictionaryGetCountOfValue (
    CFDictionaryRef dict, 
    const void *value
);
Parameter descriptions
dict

The dictionary to be searched. If this parameter is not a valid CFDictionary, the behavior is undefined.

value

The value for which to find matches in the dictionary. The equal() callback provided when the dictionary was created is used to compare. If the equal() value callback was NULL, pointer equality (in C, ==) is used. If value, or any of the values in the dictionary, are not understood by the equal() callback, the behavior is undefined.

function result

The number of times the given value occurs in the dictionary.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


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