This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

typedef with a member "pointer to itself"

Hello forum

I've a c progamming question:
I want to place a function pointer into a typedef with a function parameter "pointer to the typedef itself":


typedef struct pExampleStructTypdef {
  char  x;
  void  *y;
  int   z;
  int   (*pFuncPtr)(pExampleStructTypdef *, unsigned int);
}pExampleStructTypdef

It seems logical that this does not work that way. Does anybody know a solution for this? Thanks!