How can I replace multiple consecutive occurences of a character with a single occurrence in C?
For example, if I have a char myString[]="??hello?world????"
I would like to have the output as ?hello?world?
.
I found this link but it replaces a specific pattern. However, what if there are variable number of repeating characters?