Send command for RC Car

can you explain this line:

inData is an array. It can hold 80 elements, in positions 0 to 79. If the position to insert the value in the array, stored in index, is less than 79 (should really be 78), then add the character at that position in the array. Then, increment the position to insert (the index++ part), and then insert a NULL at that position.