R
riddhi.mittal
what is the difference in :
typedef void (fn) ();
and
typedef void (*fn) ();
the first one is used by my course reader for passing callback
functions as arguments to other functions.
the second one is used in a command dispatch table which is basically
a map with the strings as keys(names of functions) and function
pointers as values.
typedef void (fn) ();
and
typedef void (*fn) ();
the first one is used by my course reader for passing callback
functions as arguments to other functions.
the second one is used in a command dispatch table which is basically
a map with the strings as keys(names of functions) and function
pointers as values.