title: "passing argument 1 of 'goodString' makes pointer from integer without a cast" compiler errors-C
body: <p>I am learning C and I need to write a program with a function goodString, which returns 0 if any character in the string is repeated 2 or more times and otherwise returns 1, but I keep getting error "passing argument 1 of 'goodString' makes pointer from integer without a cast". What am I doing wrong? I'm fairly new to pointers, so am I using them wrong or is there something I misstyped in the code or something? Thank you for your time.</p>
  
  <p>Here is my code:</p>
  
  <p>function goodString:</p>
  
  <pre><code>int goodString(char *genString, int lenghtString) {
      int i, j, condition=1;
      for (i=0; i &lt; lenghtString; ++i) {
          for (j=0; j &lt; i; ++j) {
              if (*(genString+j) == *(genString+i))
                  condition=0;
          }
      }
      return condition;
  }
  </code></pre>
  
  <p>part of main where goodString is used:</p>
  
  <pre><code>char string[20], *first;
  first = &amp;string[0];
  do {
      printf("Input a string up to 20 characters");
      gets(string);
      lenght = strlen(string);
  } while (goodString (*first, lenght));
  </code></pre>
  
  <p>this part of main program requires you to keep inputting the string until there is no repetition of characters in the string</p>