title: How to remove quotes from a string in C
body: <p>I am trying to remove all quotes in a given line except a backslash followed by a quote</p>
  
  <p>what I have done is this</p>
  
  <pre><code>for (int i = 0; i &lt; lineLength; i ++) {
  
          if (line[i] == '"' ) { 
                  if (line[i-1] == '\\') // if \" is used   
                          line[i-1] = '"'; // then print \
                  line[i] = '\0'; // or 0
          }
  }
  </code></pre>
  
  <p>This removes all characters in the line.. what can I do to remove only quotes?
  Any help would be appreciated...</p>