P99

◆ p99_mismatch()

rsize_t p99_mismatch ( void p00_base,
rsize_t  p00_n,
rsize_t  p00_s,
int(*)(const void *, const void *, void *)  p00_comp,
void p00_ctx 
)
inline

Check if the array passed in as p00_base is sorted and return the first mismatch if it is not.

A mismatch here is defined as the first position at which we detect that the array is not sorted. If the array is in fact sorted the return value is p00_n.

Definition at line 540 of file p99_qsort.h.