Let\'s say I have a char *example that contains 20 chars. I want to remove every char from example[5] to example[10] and then fix up the a
char *example
example[5]
example[10]
Any ideas?
I would prepare a parallel array, copying all the characters from the source array but ignoring those characters in the range specified. Optionally, one can release the memory used by source array if it is not on stack.