title: How to compare pointer and integer?
body: <p>I'm trying to check if pointer is pointing at some char. </p>
  
  <p>Like this:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #define a 3
  int func(char *);
  int main()
  {
  char *s="a";
  int type;
  type=func(s);
  printf("%d",type);
  
      return 0;
  }
  int func(char *s)
  {
  int type;
  if(*s=="a") 
  {
  type=1;
  }
  return type;
  
  }
  </code></pre>
  
  <p>But I constantly get warning: <strong>warning: comparison between pointer and integer
   if(*s=="a")</strong></p>
  
  <p>Is it possible to compare pointer and integers?</p>
  
  <p>Is there another way to resolve this problem?</p>
  
  <p>Can I find out at which letter is pointing *s without printing it?</p>