hey,
i have a pointer problem with my compare function.
this function is ment to compare the data for use with qsort and some of my own sorting functions. comps++; is used as a counter for testing purposes.Code:int dataComp( const void * a, const void * b ) { float * arg1, arg2; comps++; arg1 = (float*) a; arg2 = (float*) b; if( *arg1 < *arg2 ) return -1; else if( *arg1 == *arg2 ) return 0; else return 1; }
any ideas why i'm getting the following errors....
Illegal use of floating point
arg1 is assign a value that is never used
Parameter 'b' is never used.
Thanks once again for all the great help you all provide.
Cheers
Chris