title: My Strlen Syntax Not Written Well?
body: <p>if I write more than 20 charcters in my program it runs through it and skips my if statement if(length > 20). What did I do wrong? </p>
  
  <pre><code>printf("\nEnter Your Product:");
  fgets(item_name, 20, stdin);
  
  length = strlen(item_name);
  if(length &gt; 20){
      Errorlevel("Input Greater Than 20");
  }
  </code></pre>