title: How can i compare the typed word with the word list?
body: <p>I have to let to user type in a word, like 'Meal'.
  In addition i have to have specific arguments(Words) like Meal, Drink, ... which i have to compare with the word the user typed.
  I dont exactly know how i can compare the word, which is a char for me with a done list of words.
  In the following example i god a program crash:</p>
  
  <pre><code>char listing[3];
  listing[0]="Meal";
  listing[1]="Drink";
  listing[2]='\0';
  </code></pre>
  
  <p>I have to compare this list with the typed in word:</p>
  
  <pre><code>char option;
  printf("Please insert your option");
  scanf("%s", &amp;option);
  </code></pre>
  
  <p>Maybe my list is wrong? i just tried to compare it in my function with if, but its not working:</p>
  
  <pre><code>if ((option==listing[0]) ||
  (option==listing[1]))
  </code></pre>
  
  <p>And if i declare the list with for example "Meal" it says 
  warning: assignment makes integer from pointer without a cast [enabled by default]|</p>
  
  <p>Thanks for your help, i sadly cant find a solution, shame on me.
  Greetz</p>