#include "base/cs_defs.h"
#include <stdio.h>
Go to the source code of this file.
|
typedef void | cs_sort_partition_s_to_elt_t(double s, void *elt, const void *input) |
| function pointer for conversion of a double precision value in range [0, 1] to a given element.
|
typedef int | cs_sort_partition_compare_t(const void *elt1, const void *elt2, const void *input) |
| function pointer for comparison of 2 elements.
|
◆ cs_sort_partition_compare_t
typedef int cs_sort_partition_compare_t(const void *elt1, const void *elt2, const void *input) |
function pointer for comparison of 2 elements.
This function is the same type as that used by qsort_r.
- Parameters
-
[in] | elt1 | coordinate between 0 and 1 |
[in] | elt2 | pointer to optional (untyped) value or structure. |
[in] | input | pointer to optional (untyped) value or structure. |
- Returns
- < 0 if elt1 < elt2, 0 if elt1 == elt2, > 0 if elt1 > elt2
◆ cs_sort_partition_s_to_elt_t
typedef void cs_sort_partition_s_to_elt_t(double s, void *elt, const void *input) |
function pointer for conversion of a double precision value in range [0, 1] to a given element.
- Parameters
-
[in] | s | coordinate between 0 and 1 |
[out] | elt | pointer to element |
[in] | input | pointer to optional (untyped) value or structure. |