title: Comparing user input to a string in C
body: <p>I am trying to see if the user inputs an "h" so that I can run another function, but for some reason, when I run the program, it states Segmentation Fault. Any help would be appreciated. </p>
  
  <pre><code>char checkh[] = "h";
  char *checkInput;
  printf("Enter input:");
  scanf("%s", checkInput);
  
      if(strcmp(checkInput, checkh) == 0){
              helpMsg();
      }
  </code></pre>