Getting the no repeated pairs out of a a string
Is there any command in C(no c++) that takes a string as a parameter and returns a string with the no repeated pairs.
for instance
the string : teststring, should return
te es st ts tr ri in ng
instead of
te es st ts st tr ri in ng
the spaces are just for illustrative purpose and to get the idea of what Im trying to get here.
thanks in advance.
Last edited by charlitos; 02-17-2009 at 01:14 AM.
|