Modular C
C◼llong◼compar◼compar: symbols inserted from C◼tmpl◼compar.
+ Collaboration diagram for C◼llong◼compar◼compar: symbols inserted from C◼tmpl◼compar.:
int C◼llong◼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◼llong
C◼tmpl◼compar◼funcC◼llong◼compar

Function Documentation

§ C◼llong◼compar()

int C◼llong◼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 123 of file C-llong-compar.c.

References C◼MODULE_ABI, and C◼MODULE_FEATURES.

Referenced by C◼llong◼qsort().

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