title: expected const char * but argument is of type char
body: <p>This error keeps popping up and I don't know how to solve it.<br>
  Please help!  the error pops up in this line: <br>
  <code>---fscanf(ifp, "%s", archive.team[i].color);---</code></p>
  
  <p>There is also a <br> <code>"passing argument 2 of strcmp makes pointer from integer without a cast"</code><br>error in line:<br> 
  <code>---if (strcmp(archive.team[j].name, name) == 0){---</code></p>
  
  <p>Here is a condensed version of my code----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  struct dragon {
      char name[40] ;
      char color[40] ;
  };
  struct collection {
      struct dragon team[1000];
      int num_dragons;
  };
  
  int main() {
  
  struct collection archive;
  
  FILE * ifp = fopen("dragon.txt", "r");
  int i, j, k, l, m, updates, n=0;
  char directions, color, name, ADD, REMOVE, SEARCH, LIST, rem;
  
  fscanf(ifp, "%d", &amp;updates);
  for (i=0; i&lt;updates; i++){
      fscanf(ifp, "%s", directions);
  
      if (directions==ADD){
          fscanf(ifp, "%s", archive.team[i].name);
          fscanf(ifp, "%s", archive.team[i].color);
          printf("%s the %s has been added to the team.", archive.team[i].name, archive.team[i].color);
      }
  
     else if (directions==REMOVE){
          fscanf(ifp, "%s", name);
          for (j=0; j&lt;updates; j++){
              if (strcmp(archive.team[j].name, name) == 0){
                  strcpy(archive.team[j].name, "rem");
                  strcpy(archive.team[j].color, "rem");
                  printf("%s the %s has been removed from the team.", name, archive.team[j].color);
              }
          }
      }
  
      else if (directions==SEARCH){
          fscanf(ifp, "%s", name);
          for (k=0; k&lt;updates; k++){
              if (strcmp(archive.team[k].name, name) == 0)
              printf("%s the dragon is currently on the team.", name);
          }
          for (l=0; l&lt;updates; l++){
              if (strcmp(archive.team[l].name, name) == 0)
                  n++;
          }
          if (n==0)
              printf("%s the dragon is NOT currently on the team.", name);
  
      }
  
      else if (directions==LIST){
          fscanf(ifp, "%s", color);
          printf("%s dragons:\n", color);
          for (m=0; m&lt;updates; m++){
              if (strcmp(archive.team[m].color, color) == 0)
              printf("%s\n", archive.team[m].name);
          }
      }
  }
  </code></pre>