CMR  1.3.0
sort.h
Go to the documentation of this file.
1 #ifndef CMR_SORT_INTERNAL_H
2 #define CMR_SORT_INTERNAL_H
3 
4 #include "env_internal.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
18  CMR* cmr,
19  size_t length,
20  void *array,
21  size_t elementSize,
22  int (*compare)(const void*, const void*)
23 );
24 
34  CMR* cmr,
35  size_t length,
36  void *array1,
37  size_t elementSize1,
38  void* array2,
39  size_t elementSize2,
40  int (*compare)(const void**, const void**)
41 );
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* CMR_SORT_INTERNAL_H */
CMR_ERROR
Type for return codes of library functions.
Definition: env.h:32
CMR_ERROR CMRsort(CMR *cmr, size_t length, void *array, size_t elementSize, int(*compare)(const void *, const void *))
Sorts an array.
Definition: sort.c:22
CMR_ERROR CMRsort2(CMR *cmr, size_t length, void *array1, size_t elementSize1, void *array2, size_t elementSize2, int(*compare)(const void **, const void **))
Sorts two arrays simultaneously.
Definition: sort.c:33
Definition: env_internal.h:45