title: Memory allocation on Windows C code
body: <p>I'd like to know which method is recommended on Windows C programming: using malloc or the Win32 HeapAlloc (maybe VirtualAlloc?) function.</p>
  
  <p>I've read the MSDN <a href="http://msdn.microsoft.com/en-us/library/aa366781(VS.85).aspx" rel="nofollow noreferrer">Memory Management Functions</a> article and the MSDN articles regarding malloc and HeapAlloc, but they do not say which one should be used and in what situations.</p>