Special char

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

  1. cesvokamra

    cesvokamra New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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?

    Thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice