title: How to check if user pressed Enter key ?
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  #include "formatCheck.h"
  int main()
      {
      char input[32];
      char format[32]
      printf("enter your format : ");
      fgets(input,sizeof(input),stdin);
      sscanf(input,"%s",format);
          //my problem
          //if user don't enter format it will exit.
           if()
              {
              return 0;
              }
      }
  </code></pre>
  
  <p>How can I check if user doesn't input anything (just Enter key).
  Sorry about English.
  Thanks.</p>