Veritable Lasagna
An Allocator & Data Structure Library for C.
Loading...
Searching...
No Matches
vl_compare.h File Reference
#include "vl_numtypes.h"
+ Include dependency graph for vl_compare.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef vl_int_t(* vl_compare_function) (const void *dataA, const void *dataB)
 

Typedef Documentation

◆ vl_compare_function

typedef vl_int_t(* vl_compare_function) (const void *dataA, const void *dataB)

The compare function typedef. Used for sorting.

In most cases, the following holds true for sorting in ascending order: Should return < 0 if dataA > dataB. Should return > 0 if dataA < dataB. Should return 0 if dataA == dataB.

Parameters
dataApointer to first datum
dataBpointer to second datum