title: Compressing numeric string ids using BCD in C
body: <p>I have a bunch of ids in the form of <code>uint32_t-uint32_t</code>two unsigned integers separated by a hyphen. I'm looking to compress them. I was thinking to convert them to BCD (in other words two digits per byte) and output the compressed string. For example, <code>90-1418</code></p>
  
  <pre><code>90-1418 -&gt; 0x39 0x00 0x2d 0x31 0x34 0x31 0x38
               \    /    |    \    /    \    /
                0x90    0x2d   0x14      0x18
  </code></pre>
  
  <p>Are there any libraries in C out there that can compress/decompress this type of strings?</p>