MCPcopy Create free account
hub / github.com/F-Stack/f-stack / med3

Function med3

freebsd/libkern/qsort.c:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94#endif
95
96static inline char *
97med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk
98#ifndef I_AM_QSORT_R
99__unused
100#endif
101)
102{
103 return CMP(thunk, a, b) < 0 ?
104 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
105 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
106}
107
108#ifdef I_AM_QSORT_R
109void

Callers 1

qsortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected