cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Moving ends of strings...
Moving ends of strings...
Nov 11, 2010 at 1:46am UTC
opsarc
(5)
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 UTC
Nov 11, 2010 at 2:54am UTC
Duthomhas
(13206)
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 UTC
Nov 11, 2010 at 3:49am UTC
opsarc
(5)
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.