1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Special char

Discussion in 'C' started by cesvokamra, Aug 28, 2010.

  1. cesvokamra

    cesvokamra New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    Hi guys, I've to develop a software to compress and extract files using the RLE algorithm.

    And I've decided to implement it so that if I've a set of chars like
    "ABRTTTTOPSSSSSNU" it will be converted as "ABR4*TP5*SNU".

    Now, the problem is that for example the char '*' could be present also in the file, making a false-positive.
    Does exist any "special" char which could I use to be sure that it's not present in any file? Or do you know any other "smart" implementation to do something like this?


Share This Page