title: How to place " inside a string in C
body: <p>I'm attempting to use a <code>strstr()</code> to find the first occurrence of a double quote ("), however, when I use this line of code:</p>
  
  <pre><code>pch = strstr(tmp,""");
  </code></pre>
  
  <p>It won't compile because I don't have a terminating quote. So I used </p>
  
  <pre><code>pch = strstr(tmp,'"');
  </code></pre>
  
  <p>which then tells me I have an error like this:</p>
  
  <pre><code>passing argument 2 of ‘strstr’ makes pointer from integer without a cast [enabled by default]
    pch = strstr(tmp,'"'); //finds the first occurrence and deletes the preceeding
    ^
  In file included from /usr/include/stdio.h:29:0,
                   from assignment1.c:1:
  /usr/include/string.h:40:8: note: expected ‘const char *’ but argument is of type ‘int’
   char  *_EXFUN(strstr,(const char *, const char *));
  </code></pre>
  
  <p>Any ideas around this or does anyone know of a way to use <code>strstr</code> to detect a double quote character? Maybe with ASCII conversions?</p>