Hey everyone!
I am trying to recieve multiple bytes over serial, store in array, and use atoi to convert to int. However I am getting very different results from atoi

Using atoi like this:
if( Serial.available() >= 3 ) {
rred[0] = Serial.read();
rred[1] = Serial.read();
rred[2] = Serial.read();
char * thisChar = rred;
int a = atoi(thisChar);
}
Attaching a pic of terminal, so you can se what it outputs.
gratisupload.dk/download/45675/
As you can see, it works after sending 000 command some times, but only once.
Please help!!

Best regards, Jonas Hald