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

Function Documentation

§ C◼char◼compar()

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

References C◼MODULE_ABI, and C◼MODULE_FEATURES.

Referenced by C◼char◼qsort().

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