title: How to programmatically cause a core dump in C/C++
body: <p>I would like to force a core dump at a specific location in my C++ application.</p>
  
  <p>I know I can do it by doing something like:</p>
  
  <pre><code>int * crash = NULL;
  *crash = 1;
  </code></pre>
  
  <p>But I would like to know if there is a cleaner way?</p>
  
  <p>I am using Linux by the way.</p>