title: Can't catch apostrophe in if statement
body: <p>I am creating a program that takes a text file, and a word. It reads a text file and compares the word to the current word being read. The way I built it was to ignore the "'s". For example if I am searching "NASA" and I came across the word "NASA's", it would just read it as "NASA". Unfortunately I can't catch the apostrophe by using "if (ch == ''\')", "ch" being the current char. I reason being maybe because the apostrophes in the text file look like this ’. I don't know how to accommodate for that. </p>
  
  <p>Here's what I have to catch an apostrophe:</p>
  
  <pre><code>else if (ch == '\'')
                  {
  
  #if 1           
                      printf("Comparing Apostrophe\n");
  #endif
                      continue;
  
                  }
  </code></pre>
  
  <p>Please note that it is part of a bigger program, which I am not allowed to show you. This explains the "else if" ion the beginning. </p>
  
  <p>Thanks.</p>