title: C: how to check if a particular variable has been passed as argument
body: <p>I have the following code:</p>
  
  <pre><code>typedef struct{
  int A; 
  char* B;
  }MYTYPE;
  
  MYTYPE sample;
  int nCount; 
  
  void doSomething(int A, MYTYPE* B)
  {
  //doing something inside this function.
  }
  
  doSomething(nCount, &amp;sample);
  </code></pre>
  
  <p>Is there a way in my function doSomething() to check if the second argument passsed was exactly <code>sample</code>?</p>