title: How do I base58 encode a string?
body: <pre><code>char (* text)[1][45+1];
  text = calloc(5000,(130+1));
  strcpy(0[*text],"sometext)");
  </code></pre>
  
  <p>Now I want to encode "sometext" to base58, however, I do not know how, and oddly enough, there isn't one example of BASE58 in C.</p>
  
  <p>The base58 encoding I'm interested in uses these symbols:</p>
  
  <blockquote>
    <p>123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ</p>
  </blockquote>
  
  <p>It's been optimized to lessen the risk of mis-reading, so 0 and 'O' are both gone, for instance.</p>
  
  <p>P.S
  Don't mind the weird allocation and declaration of the variables, I was experimenting.</p>