Function typedefs have any use?

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Feb 7 00:01:00 GMT 2005


"Kevin P. Fleming" <kpfleming@starnetworks.us> writes:

[...]

| So, that leaves me back at my original quandary: I can create a
| typedef of a function type, and I can use that typedef to declare
| function pointers to hold addresses of compatible functions, but I
| can't use the typedef to actually _declare_ those compatible functions

sure, you can use it to declare the function itself.  See the example I
gave. 

But, yes, you can't use it to *define* it.  Think about how you'd
introduce the function parameters.

-- Gaby



More information about the Gcc-help mailing list