title: Finding unique elements in an string array in C
body: <p>C bothers me with its handling of strings. I have a pseudocode like this in my mind:</p>
  
  <pre><code>char *data[20]; 
  
  char *tmp; int i,j;
  
  for(i=0;i&lt;20;i++) {
    tmp = data[i]; 
    for(j=1;j&lt;20;j++) 
    {
      if(strcmp(tmp,data[j]))
        //then except the uniqueness, store them in elsewhere
    }
  }
  </code></pre>
  
  <p>But when i coded this the results were bad.(I handled all the memory stuff,little things etc.) The problem is in the second loop obviously :D. But i cannot think any solution. How do i find unique strings in an array.</p>
  
  <p>Example input : abc def abe abc def deg entered
  unique ones : abc def abe deg should be found.</p>