Function

CFArrayGetValueAtIndex

Retrieves a value at a given index.

Declaration

const void * CFArrayGetValueAtIndex(CFArrayRef theArray, CFIndex idx);

Parameters

theArray

The array to examine.

idx

The index of the value to retrieve. If the index is outside the index space of theArray (0 to N-1 inclusive (where N is the count of theArray), the behavior is undefined.

Return Value

The value at the idx index in theArray. If the return value is a Core Foundation Object, ownership follows The Get Rule.

See Also

Examining an Array

CFArrayBSearchValues

Searches an array for a value using a binary search algorithm.

CFArrayContainsValue

Reports whether or not a value is in an array.

CFArrayGetCount

Returns the number of values currently in an array.

CFArrayGetCountOfValue

Counts the number of times a given value occurs in an array.

CFArrayGetFirstIndexOfValue

Searches an array forward for a value.

CFArrayGetLastIndexOfValue

Searches an array backward for a value.

CFArrayGetValues

Fills a buffer with values from an array.