title: Platform-dependent issue in run-length encoding of bmp files using C
body: <p>I've written a program which opens a bmp file and treats it as a character file and performs run length encoding on it. It produces a valid compressed encoding file, which I read again to perform the decoding.</p>
  
  <p>When i'd made the application i was using Fedora and it ran perfectly fine. Now i'm running it on ubuntu and it refuses to work.</p>
  
  <p>Any idea what is wrong? I fear it has to do with the encoding.</p>