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

Function Documentation

§ C◼schar◼compar()

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

References C◼MODULE_ABI, and C◼MODULE_FEATURES.

Referenced by C◼schar◼qsort().

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