title: Error: function declared as function returning function
body: <p>I am porting a windows assembly to linux. I have certain code to port. I am actually a newbie with C in linux. I know C fundamentals are the same yet!</p>
  
  <pre><code>typedef struct sReader
  {
      pReaderAddRef addRef;
      pReaderDelRef delRef;
  }pReader, *pSReader;
  
  typedef long (*pReaderAddRef)(struct sReader *);
  typedef long (*pReaderDelRef)(struct sReader **);
  </code></pre>
  
  <p>The above code give me the error <strong>'pReaderAddRef' declared as function returning a function</strong>. </p>
  
  <p>I understand the way callback functions work. But i dont really know how to resolve this error.</p>
  
  <p>Kindly help.</p>