Receiving "expected initializer before function name"

Hi,

I have the code below and am receiving an “expected initializer before TestOne” error message. Why might this be?

Thanks

Here is my code:

void setup() {
Serial.begin(9600);
pinMode(A2, INPUT);
}

float IRVal = analogRead(A2);
float IROne[100];
boolean result;

void boolean testOne (float IROne) {
for (int i = 0; i < IROne.length - 1; i++) {
IRVal = IROne*;*
_ if (IROne > IROne[i - 1]) {_
* result = true;*
* Serial.println(result);*
* }*
* }*
* result = false;*
* Serial.println(result);*
}

void boolean testOne (float [] IROne) {Not how you introduce an array.
The brackets go after the name.

Also, a function cannot be void and return a boolean

Please remember to use code tags when posting code