Re: CoreFoundation: What is the prototype of the CFComparatorFunction?
Re: CoreFoundation: What is the prototype of the CFComparatorFunction?
- Subject: Re: CoreFoundation: What is the prototype of the CFComparatorFunction?
- From: Vince DeMarco <email@hidden>
- Date: Sat, 8 Sep 2001 16:18:38 -0700
On Saturday, September 8, 2001, at 02:58 pm, Alexandre Aybes wrote:
The subject says it all. :) I've looked for it in the docs, and haven't
been able to find what is the prototype of the CFComparatorFunction to
pass to: (CFArray.h)
void CFArraySortValues(CFMutableArrayRef theArray, CFRange range,
CFComparatorFunction comparator, void *context);
And in general, where should I look for that kind of stuff?
If you can't find it in the documentation look at the header file
/System/Library/Frameworks/CoreFoundation.framework/Headers
CFBase.h:typedef CFComparisonResult (*CFComparatorFunction)(const void
*val1, const void *val2, void *context);