combining values and outputing result how to?

if i have a value of a name at the moment it is set to " " (blank)

and i want to insert letters one at a time like you would a keyboard and on pressing a confirm key that collection of letters would update the blank value to the new value

how would i go on about doing this. i hope i have explained myself well enough

Use a char array (big enough to hold a name) and fill each index one by one.

thanks for the reply sorry to seem a dumb but i've never done this before ..... fill each index one by one

is there an example you could point me to?

Fill in one at a time example:

char a_name[32];

int index = 0;
a_name[index++] = 'A';
a_name[index++] = 'n';
a_name[index++] = ' ';
a_name[index++] = 'A';
a_name[index++] = 'p';
a_name[index++] = 'p';
a_name[index++] = 'l';
a_name[index++] = 'e';
a_name[index++] = 0;        // null terminate, important

tammytam: Fill in one at a time example:

Brilliant thanks i will give it a try