Array with User-Defined Function

void setup()
{
  int ret_val; 
  int oldArray[] = {
    5, 6  };
  int newArray[] = {
    0, 0  };
  ret_val = plusOne(oldArray, 1, newArray);

  
}

void loop() {
}

int plusOne(int *inputArray, int indices, int* outputArray)
{
  for (int i=0; i<=indices; i++)
  {
    outputArray[i]=inputArray[i]+1;
  }
  return 1; //yeay... success...
}

This?