Moving ends of strings...

Is there a string function that takes part of a sting and moves the second part over instead of overlapping it? Like... as if I opened the string in notepad and pressed the null key a few times? I've searched around and all I can find is memmove().

Thanks in advance!
Last edited on
Er, memmove() does do overlapping copies...

Can you explain what you want to do with an example?
Last edited on
Actually, I figured it out. You can use memmove to do it.

But I mean like... you have string that goes like

"...hello world...."

But then... I would insert "there,"

"... hello there world...."

And I wouldn't need to delete the word world.

Topic archived. No new replies allowed.