Hello everyone,
I don't know if I'm confused with itoa,excuse me for this if so, but what I'm trying to do is:
I have an array of characters, say
char example[7]
I assigned the first 4 characters by
strcpy(example,"Fill");
Then I'm trying to fill the next char with an integer using itoa:
example[4]=itoa(i,example[4],10);
where i is an incremental integer variable in a for loop.
the rest of the char array is constant.
example[5]='x';
example[6]='\0';
Thank you for your replies.
Cheers,