title: Format %c expects argument of type char* but has int
body: <p>So I know I've defined the char. But something is annoying the compiler. </p>
  
  <pre><code>        char direction;
          int exit, firstLine, length;
          firstLine = 0, exit = 0;
  
          /* Boolean for the whether size has been read. */
          while (((fgets(line, sizeof(line), boardFile)) != NULL) || exit == 1)
          { 
              if (firstLine == 0)                                     /* Easy way of handling reading width/height. */
              {
                  /* Split for size and width. */
                  sscanf(line, "%d,%d", widthPtr, heightPtr);             /* Store width and height inside width/height. */
                  firstLine++;
                  if (VALIDSIZE(*widthPtr))
                  {
                      if (!(VALIDSIZE(*heightPtr)))
                      {
                          printf("%d is an invalid Height. Must be between 1 and 12 (Inclusive).", *heightPtr);
                          exit = 1;
                      }
                  }
                  else
                  {
                      printf("%d is an invalid Width. Must be between 1 and 12 (Inclusive).", *widthPtr);
                      exit = 1;
                  }
              }
              else
              {
                  Ship* newShip;
                  sscanf(line, "%s %c %d %[^\n]", location, direction, &amp;length, name);    /* Parse into vars. */
                  newShip = createStruct(location, direction, length, name);              /* Need a createStruct method so it doesn't store the same Struct in the same memory location. */
                  insertLast(list, newShip);                                              /* Add to the list of structs. */
              }   
  </code></pre>
  
  <p>The error I'm getting</p>
  
  <p><code>format %c expects argument of type char* but argument has type int.</code></p>
  
  <p>I'm trying to read in this string</p>
  
  <p><code>D4 E 3 NullByte Sub</code></p>
  
  <p>It was working as a char* but I needed it to be a char since it's only one character anyway.</p>
  
  <p>The E is what I'm trying to scan into the char and the scanf is what is throwing the error.</p>
  
  <p>Any help is great thanks</p>