title: Automatically deleting unused local variables from C source code
body: <p>I want to delete unused local variables from C file.
  Example:</p>
  
  <pre><code>int fun(int a , int b)
  {
    int c,sum=0;
    sum=a + b;
      return sum;
  }
  </code></pre>
  
  <p>Here the unused variable is 'c'.</p>
  
  <p>I will externally have a list of all unused local variables.  Now using unused local variables which I have, we have to find local variables from source code &amp; delete.<br>
  In above Example "c" is unused variable. I will be knowing it (I have code for that).
  Here I have to find c &amp; delete it .</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The point is not to find unused local variables with an external tool. The point is to remove them from code given a list of them.</p>