title: Error checking for strInput to notify user of an input too large for the program?
body: <p>I'm simply trying to implement some error checking in my program. </p>
  
  <p>The program converts strings that are 100 characters or less to words that look like the following hello->hElLo. So every other letter is capitalized. So I simply want to add a statement that tells the user the input is too large and asks them to re-enter a word. Here is what I have, but it just outputs <code>To large.</code> no matter what is entered, then quits the program.</p>
  
  <pre><code>int main(){
  /*Read word from the keyboard using scanf*/
  char strInput[100];
  printf("Input word that is 100 characters or less: \n");
  
  scanf("%s", strInput);
  /*Call studly*/
  studly(strInput);
  /*Print the new word*/
  if (strInput &gt; 100){
      printf("To large.");
  }
  else{
  printf("%s", strInput);
  }
  
  
  return 0;
  }
  </code></pre>
  
  <p>This is just the main function but I think the only thing I need to do is change my <code>if</code> and <code>else</code> statements. Just not sure how to check size of <code>char strInput[100]</code> in the <code>if</code> statment. Also let me know if there is a simple way to handle spaces. Thanks for your help!</p>