By putting a terminator after each character as it is entered.
InputArray[InputArrayPos++] = charselect;
InputArray[InputArrayPos] = '\0';
(Of course, you've already ensured there's space for both...)
By putting a terminator after each character as it is entered.
InputArray[InputArrayPos++] = charselect;
InputArray[InputArrayPos] = '\0';
(Of course, you've already ensured there's space for both...)