title: Can I define a function inside a C structure?
body: <p>I am trying to convert some C++ code to C and I am facing some problems.
  How can I define inside a structure a function?</p>
  
  <p>Like this:</p>
  
  <pre><code> typedef struct  {
      double x, y, z;
      struct Point *next;
      struct Point *prev;
      void act() {sth. to do here};
  } Point;
  </code></pre>