Maybe I use inline functions...
There are any way to archieve it, without using function pointers?
Thanks in advance.
Maybe I use inline functions...
There are any way to archieve it, without using function pointers?
Thanks in advance.
No
The only way I can think of is similar to this one (with function pointers).
to complement all other answers, i would add that a, in C, a structure is only for storing data: a function is not data, so it cannot be stored into a structure.
however, as pcent pointed out, a pointer to a function is a type of data and can be stored in a structure.