trouble with Strings

Hi,

am a newbie to this… as you probebly can see…
I try to write 0 to a char string, not ‘0’ but 0, but I can’t get it to work.
can somebodey please help me out here?

in advance, thank you

[QUOTE=Zpike;1649]Hi,

am a newbie to this… as you probebly can see…
I try to write 0 to a char string, not ‘0’ but 0, but I can’t get it to work.
can somebodey please help me out here?

in advance, thank you[/quote]

The easiest way is to simply put a 0 where you want it;

char buffer[32] = “Jingle Bells”;
.
.
.
buffer[6] = 0; // now buffer only says “Jingle”

thanks for the replay.

but what if I still wants to have something after the insertion of 0?
Is that possible?

[QUOTE=Zpike;1652]thanks for the replay.

but what if I still wants to have something after the insertion of 0?
Is that possible?[/quote]

As long as there is room in your declared buffer you can use strcat() or strncat() functions.