title: Comparing a single string to an array of strings in C
body: <p>My program is accepting user input and then taking the first word inputted and comparing it to an array of accepted commands. What would be the best way to compare the first word inputted (after it has been tokenized) to an array of strings?</p>
  
  <p>Example: </p>
  
  <p>comparing the string <code>"pwd"</code> to an array containging <code>{"wait", "pwd", "cd", "exit"}</code></p>
  
  <p>Thanks in advance for your help!</p>