Modular C
C◼real◼ldouble◼compar◼compar: symbols inserted from C◼tmpl◼compar.
+ Collaboration diagram for C◼real◼ldouble◼compar◼compar: symbols inserted from C◼tmpl◼compar.:
int C◼real◼ldouble◼compar (void const *av, void const *bv)
 A comparison function as it is needed by C◼tmpl◼bsearch and C◼tmpl◼qsort. More...
 

Detailed Description

See also
C◼tmpl◼compar snippet: identifiers inserted directly to an importer for details
This import uses the following slot(s)
slotreplacement
C◼tmpl◼compar◼TC◼real◼ldouble
C◼tmpl◼compar◼funcC◼real◼ldouble◼compar

Function Documentation

§ C◼real◼ldouble◼compar()

int C◼real◼ldouble◼compar ( void const *  av,
void const *  bv 
)
inline

A comparison function as it is needed by C◼tmpl◼bsearch and C◼tmpl◼qsort.

Definition at line 125 of file C-real-ldouble-compar.c.

References C◼MODULE_ABI, and C◼MODULE_FEATURES.

Referenced by C◼real◼ldouble◼qsort().

125  {
126 #line 16 "/home/gustedt/build/cmod/C/C-tmpl-compar.X"
127  C◼real◼ldouble const*a = av;
128  C◼real◼ldouble const*b = bv;
129  if (*a < *b) return -1;
130  else if (*a > *b) return 1;
131  else return 0;
132 }
C◼ldouble C◼real◼ldouble
Definition: C-math.c:402
+ Here is the caller graph for this function: