[Main]
Title=How can I make a floating point comparison function for use with qsort?

[Top]
<TABLE CELLPADDING="4"><TR><TD VALIGN="TOP"><B>Q:</B></TD><TD>
How I can define a comparison function for sorting an array of floats using
<A HREF="$$LINK(stdlib.h/qsort)">qsort</A> function:
</TD></TR><TR><TD VALIGN="TOP"><B>A:</B></TD><TD>
Here is a simple example (called "Sort Floats"):
$$EXAMPLE(Sort Floats.c)
</TD></TR></TABLE>
