You need a char array to store the characters, and an index variable to keep track of where in the array you are. Every time a key is pressed, you put it in the array, increment the index variable, and null terminate the array.
You need a char array to store the characters, and an index variable to keep track of where in the array you are. Every time a key is pressed, you put it in the array, increment the index variable, and null terminate the array.