Sorry, I should have clarified what I meant by that. I don't mean to use this code in the function passed as a pointer to a
qsort
/
bsearch
-like function, but in an implementation of a
qsort
/
bsearch
-like function itself to have more readable code that matches the algorithm involved and makes code review much easier. I guess I'll add an implementation of
qsort
using this kind of construct for better understanding of what I mean. —
nebel 19 secs ago