Serial with strings and char

TolpuddleSartre:
The first element.

Hope that's specific enough.

obviously it wasn't specific enough the first 2 times you said it..

if oyu looked at the example i posted

 while (Serial.available() > 0 && newData == false) {
        rc = Serial.read();

        if (rc != endMarker) {
            receivedChars[ndx] = rc;
            ndx++;
            if (ndx >= numChars) {
                ndx = numChars - 1;
            }
        }
        else {
            receivedChars[ndx] = '\0'; // terminate the string  //do you see this
            ndx = 0;
            newData = true;
        }
    }
}

so the question is what is the real problem