title: Is there a win32 API to convert a string to character array
body: <p>something like a stringtoshortArray that does this:</p>
  
  <pre><code>short arr[5];
  LPCTSTR teststr = "ABC"; // passed as an argument, can be anything
  input= stringtoshortarray(teststr, arr);
  
  output:
      arr[0] = 41;
      arr[1] = 42;
      arr[2] = 43;
      arr[3] = 0;
  </code></pre>
  
  <p>and possibly a function that provides the sizeof the array say</p>
  
  <pre><code>int sz = SizeofArray(arr);
  output: 
      sz = 3
  </code></pre>
  
  <p>could probably code it, but if a library call is there I would like
  to use it.</p>