Updating legacy C code headers to C++ stdlib
<p>Inherited a slew of legacy C code, and am in the process of porting it to compile on Linux with GCC (g++). Since we are going to be using C++ in the future and I'm fixing the "custom" library header files anyways (and compiler warnings), is it safe to update the old C headers to use the newer C++ style ones. </p>

<p>So things like</p>

<pre><code>#include &lt;cstdlib&gt;
</code></pre>

<p>Instead of</p>

<pre><code>#include &lt;stdlib.h&gt;
</code></pre>

<p>To my knowledge the only difference between the two is that cstdlib has things in the <code>std::</code> namespace.</p>

<p>Would anything make this a bad idea?</p>
