Re: Function typedefs have any use?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kevin,

The actual function is not a pointer to a function -- it's the actual function.

Under the covers of C (i.e., at the assembly language level), a label to a function is just a label.

But the syntax of C doesn't have the language construct of "here's a label (identifier), here's the type of that label, and here's it's body".

So, no, you'll have to do it "the hard way".

--Eljay

C CHALLENGE: can you write a function that returns a function pointer which has the same signature as the function itself? (Without using one-or-more big hammer casts.) Useful trick for making a state machine.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux