It seems to me you have wrongly hard-coded this:

Code:
void my_quicksort(int arr[]){
  int low = 0;
  int high = 8;

[...]
Read one implementation from here:

rosettacode

Code:
void quicksort(int *A, int len);