Sort an array of characters. NEWBIE QUESTION, PRO POINTS (500) AVAILABLE
Posted on 2006-06-02
I need a program that sorts an array of 8-bit signed integers (characters). The values should go from smallest to greatest. The array can be of arbitrary size. The program will take as input a pointer to the array and the size of the array. The sorted values need to be stored in the original array.
void Sort(char *pArray, int nSize)
Please note that I will award 500 points to the _first_ person to answer my question to the spec. The solution must be in ANSI C and it must be clean and efficient.