Simple sort function
From Programming In C
[edit]
Exercise 5.2
Write a function that takes three integer parameters. On return the largest value is stored in the first parameter, the next largest value in the second parameter and the smallest value in the third parameter. The function should return an integer value. The return value should be: 0 if none of the three values were equal; 1 if two of the numbers were equal; 2 if all three value were equal.
Write a short program that demonstrates this function working. Your program should be able to demonstrate all three cases of the function return value.
