title: Null character in unicode string
body: <p>I know the code in C is this:</p>
  
  <pre><code>WCHAR string[] = L"string\0";
  </code></pre>
  
  <p>So I tried (in Python):</p>
  
  <pre><code>string = ctypes.create_unicode_buffer("String\0")
  </code></pre>
  
  <p>But this strips the Null character of or something.
  If I use <code>create_string_buffer</code> it does work.</p>
  
  <pre><code>string = ctypes.create_string_buffer("String\0")
  </code></pre>
  
  <p>Now the the string has 2 Null characters at the end of it:</p>
  
  <pre><code>&gt;&gt;&gt; string.raw
  'String\x00\x00'
  </code></pre>
  
  <p>So why does this not work for unicode?</p>
  
  <p><strong>Edit:</strong> </p>
  
  <p>This works (source: <a href="https://stackoverflow.com/questions/4393537/python-ctypes-null-terminated-string-block">Python Ctypes Null Terminated String Block</a>):</p>
  
  <pre><code>string = ctypes.wstring_at(ctypes.create_unicode_buffer(u'string\0'), 7)
  </code></pre>