Liste des Groupes | Revenir à theory |
Richard Heathfield <rjh@cpax.org.uk> writes:I am just as surprised that you missed the distinction I was making, which was between these:
...If they know C they should know that it'sYes, but I am surprised that you are being so modern!! You used to
u32 HHH(void (*P)()), according to Halt7.c.
>
It takes a pointer to a function that accepts no arguments and returns no
value.
favour C90 and didn't really care for anything more recent.
Empty ()s in a declarator were made obsolete in C17 and made equivalentbut not void HHH(void (*f)(void)), eh?
to (void) in C23. Prior to C23 a parameter that is pointer to a
function taking no arguments would have to have been written as
u32 HHH(void (*P)(void))
and after C23 the (probable) intended meaning would have to be written
as
u32 HHH(void (*P)(...))
(Caveat: I'm not properly up to date anymore and, this not beingI have no doubt you're right about (), but that wasn't the point I was making.
comp.lang.c, I may not be corrected by People Who Really Know.)
Les messages affichés proviennent d'usenet.