title: C++ memset() for long (64bit) types
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/108866/is-there-memset-that-accepts-integers-larger-than-char">Is there memset() that accepts integers larger than char?</a>  </p>
  </blockquote>
  
  
  
  <p>As it can be seen in memset's declaration:</p>
  
  <pre><code>void * memset ( void * ptr, int value, size_t num );
  </code></pre>
  
  <p>Is there any way to use this memset function (or another function included in STL library) so that you can set memory to a <strong>long long</strong> type value?</p>
  
  <p>I use this to initialize an array of long longs with a large value.</p>
  
  <p>I have to say that I've "solved" this problem by simply iterating through each value of the array and setting it to the desired value.</p>