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!

Parents Reply Children
No data
More questions in this forum