On Sat 27 Jun 2015 at 21:03:33 -0400, Bill Cunningham wrote: > > void (*sim_vm_init) (void) > > Well what is this. The function returns nothing and takes nothing > right? What's the *sim_VM_init in parenthesis referring too? That's my > question.
This is a basic C FAQ. It means that sim_vm_init is a pointer (to a
function).
An alternative way of reading it is as follows:
if
void f(void);
declares a function, then this does too:
void (*g)(void);
where *g is the function. In other words, g is a pointer to a function.
See http://c-faq.com/decl/cdecl1.html for a bit more extended
explanation of C declaration syntax.
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl -- 'this bath is too hot.'
pgp7008k358Nt.pgp
Description: PGP signature
_______________________________________________ Simh mailing list [email protected] http://mailman.trailing-edge.com/mailman/listinfo/simh
