/** * itzak.c * Itzak's correct but inefficient implementation of ith_smallest. */ // +---------+-------------------------------------------------------- // | Headers | // +---------+ #include "krq.h" #include "ith-smallest.h" // +-----------+------------------------------------------------------ // | Functions | // +-----------+ char * ith_smallest (char *strings[], int size, int i) { kr_qsort (strings, 0, size-1); return strings[i]; } // ith_smallest