title: How to call pointer to function defined in typedef struct
body: <p>what is wrong with the following code?<br>
  parseCounter1() and parseCounter1() below are two functions.<br>
  I put their pointers in <code>const OptionValueStruct</code> so that<br>
  they can be called accordingly when each element of option_values[]<br>
  are gone through:</p>
  
  <pre><code>typedef struct OptionValueStruct{  
      char counter_name[OPTION_LINE_SIZE];  
      int* counter_func;  
  } OptionValueStruct_t;  
  
  const OptionValueStruct option_values[] = {    
      {"Counter1", (*parseCounter1)(char*, char**)},  
      {"Counter2", (*parseCounter2)(char*, char**)},  
     };  
  
  const OptionValueStruct *option = NULL;
  
  for(int i = 0; i&lt; sizeof(option_values)/sizeof(OptionValueStruct_t); i++){
      option = option_values + i ;  
      result = option-&gt;counter_func(opt_name, opt_val);  
  }  
  </code></pre>