struct in c program

Bellow code is c programing.
1
2
3
4
5
6
  struct NodeStruct
{
  int Base;
  int Value;
  void   (*pinMode)  (struct NodeStruct *node, int pin,int mode) ;
} ;

I don't understand about line :
 
  void   (*pinMode)  (struct NodeStruct *node, int pin,int mode) ;


What is it called?
Can you explain with an example?
It is a pointer to a function.

https://www.newty.de/fpt/fpt.html

Hope this helps.
Thanks Duthomhas
Topic archived. No new replies allowed.