While working on one of the last exercises in Stroustrup’s Programming – Principles and Practice Using C++, I came across this little problem: assume you want to sort an array of C-style strings using qsort() from the C standard library (<cstdlib> in C++ or <stdlib.h> in C).