title: Searchin in a stack
body: <p>This is my code for the searching part and it's not working. Can you give me a little help on this? I'm newbie on programming and I really just suck at pointers. Thanks.</p>
  
  <pre><code>typedef struct Dictionary_Entry{
      int index;
      char character[100];
      struct Dictionary_Entry *link;
  }Dictionary_Entry;
  
  typedef struct Dictionary{
      Dictionary_Entry *top;
  }Dictionary;
  
  int check_in_dictionary(Dictionary *dictionary, char string[100], char file_char[100]){
      Dictionary_Entry *runner = dictionary-&gt;top;
      strcat(string, file_char);
          while(runner != NULL){
              if((strcmp(string, runner-&gt;character)) == 0){
                  break;
                  return runner-&gt;index;
              }
          }
          return -1;
  }
  </code></pre>