title: Problems with wchar_t sprintf
body: <p>I was learning how to use wchar, but I am unable to copy the char using snprintf().
  I want to copy the text from a to b but it never prints the value. What am I doing wrong?
  And I want to use snprintf and nothing else.</p>
  <pre><code>#include &lt;wchar.h&gt;
  #include &lt;stdio.h&gt;
  
  void main() {
  
      printf(&quot;Start\n&quot;);
      wchar_t a[12];
      wchar_t b[] = L&quot;984567&quot;;
  
      snprintf(a, sizeof(a), &quot;%ls\0&quot;, b);
  
      printf(&quot;%ls\n&quot;, a);
      printf(&quot;%ls\n&quot;, b);
  
      printf(&quot;end\n&quot;);
  }
  </code></pre>
  <p>//Output</p>
  <blockquote>
  <p>Start</p>
  <p>984567</p>
  <p>end</p>
  </blockquote>