Your function is not void change it to
void selectionsort(int values[], int size){
Extra: Your function returns a void pointer, if you define it like that. And a void pointer is a pointer that can point to... well anything.
And of course see @brokenfoot's answer to learn how to call a function.