I now have an array of functions that have the same functionality,
func_pointer_t func_array[] = {func_1, func_2, func_3, ...};
I want to develop a program that traverses through all the array members and dumps the output to another .dat data file. The output should have the following format:
func_1 func_1_output
func_2 func_2_output
func_3 func_3_output
...
So my question is - when traversing through the array members, how could we let the program know which function name the function pointer is pointing to (e.g. func_array[0] is pointing to func_1)?
See Question&Answers more detail:os