title: Generate all strings under length N in C
body: <p>I tried coding this myself and horribly failed. This is basically what I want:</p>
  
  <pre><code>a
  b
  ...
  z
  aa
  ba
  ...
  za
  ab
  bb
  ...
  zz
  aaa
  baa
  ...
  zzz
  </code></pre>
  
  <p>In the end it should have generated every string that is shorter then N characters with charset a-z. So I'm not looking for <strong>permutations</strong> (of which 1001 implementations can be found on the internet), but for <strong>combinations with replacement</strong> (at least that's how it's called in Python). <strong>Order is not important</strong>, speed is.</p>