1
I would like a help on the following question:
I have a char
with a text of 32 characters, so I would like to know how to separate this char
in two of 16 characters.
Type:
char textao[32] = "Oi meu nome e Cesar tudo bem ai?"
And it has to stay:
char textoInicio[16] = "Oi meu nome e Ce"
char textoFim[16] = "sar tudo bem ai?"
I used strncpy(textoInicio, textao, 16)
for the first part and it worked. Now I don’t know how to do for the second. I also didn’t want to use for
.
Any hint?
Thank you Ossetian_odin. It worked perfectly. D
– Cesar Abascal