/* nag_rank_sort(m01dsc) Example Program * * Copyright 1990 Numerical Algorithms Group. * * Mark 4, 1996. * Mark 5 revised, 1998. * Mark 7 revised, 2001. * */ #include #include #include #include #include #define N_MAX 50 #ifdef __cplusplus extern "C" { #endif static Integer NAG_CALL compare(const Nag_Pointer a, const Nag_Pointer b) { double x = *((const double *)a); double y = *((const double *)b); return (x=0 && step!=0) { for (i=0; i