How to replace marked words in a c-string

Hi, lets say I have a c-string with certain words marked as nouns that need to be replaced, i.e

"My plan has five basic parts. One, get us *noun* independent, North American *noun* independent. That creates about 4 million jobs."

How would I go about replacing these with another c-string word? I know how to do it with regular strings, but c-strings confuse the heck out of me.

so, if that line above is a c-string called answer with an allocated memory of 700, how would I go about changing it to look like

"My plan has five basic parts. One, get us very independent, North American very independent. That creates about 4 million jobs."

Thanks for your help.
Why would you want to? The string class is a container for c strings. It handles all the code you would write if you used a standard c string.
Topic archived. No new replies allowed.