I really like the qsort
function in C. It's so easy to use and allows me to procrastinate learning C++ template types. I have a few questions about this:
- Is the algorithm used always a quicksort or is it compiler-implementation-dependent?
- Would you recommend using this function or is there a real benefit to templates?
- Are there any things I should watch out for to avoid security problems/segfaults?