title: base64 encode null terminator
body: <p>Hi I am currently trying to encode a string using the base64 encoding method in C++.</p>
  
  <p>The string itself encodes fine however I would like to have an extra null character at the end of the decoded string (so the null character would also show up in the text file I want to save the decoded string into).</p>
  
  <p>I am using this base64 code here -> <a href="http://www.adp-gmbh.ch/cpp/common/base64.html" rel="nofollow">http://www.adp-gmbh.ch/cpp/common/base64.html</a></p>
  
  <p>I hope you can give me some advices what I can do here to make this possible (I tried already writing two null characters at the end of the string I am encoding but it seems as if the encoding method only reads to the first occurence of a null character).</p>