splitting ASCII string to variables

Using what code? Can you alter it?

The code is in the format you sugested
Serial.print("!ANG");
Serial.print(roll);
Serial.print(",");
Serial.print(pitch);
Serial.print(",");
Serial.println(yaw);

I understand the code you gave and i have a doubt.
If the serial received data is stored in a array inData[index] and then if strtok function is performed wont the data be
available as seperate charecters and not as a single string to perform atof function??