S
stroker_ace
Hi,
I am working on a problem where I need to implement a string buffer
that I can remove an arbitary length char* from one end and add them to
the other.
So far the only way I have thought of to accomplish this task involves
creating using
new char[length];
and the strcopy,strcat functions to repopulate the char array with the
required amount of data each time I add/remove bytes from the head/tail
of the string.
Is there a more efficient method of implementing my required behaviour?
Many thanks
Lawrie
I am working on a problem where I need to implement a string buffer
that I can remove an arbitary length char* from one end and add them to
the other.
So far the only way I have thought of to accomplish this task involves
creating using
new char[length];
and the strcopy,strcat functions to repopulate the char array with the
required amount of data each time I add/remove bytes from the head/tail
of the string.
Is there a more efficient method of implementing my required behaviour?
Many thanks
Lawrie