Moving ends of strings...

Nov 11, 2010 at 1:46am
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 Nov 11, 2010 at 2:11am
Nov 11, 2010 at 2:54am
Er, memmove() does do overlapping copies...

Can you explain what you want to do with an example?
Last edited on Nov 11, 2010 at 2:54am
Nov 11, 2010 at 3:49am
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.