title: C interview question---run-length coding of strings
body: <p>A friend of mine was asked the following question a Yahoo interview:</p>
  
  <p><em>Given a string of the form "abbccc" print "a1b2c3". Write a function that takes a string and return a string. Take care of all special cases.</em></p>
  
  <p>How would you experts code it?</p>
  
  <p>Thanks a lot</p>