This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C declaration

Hi,

I saw a declaration as below

typedef void (*P)

(FORMAT_INFO *fmt);

what is this declaration for?

thank you so much

best regard,

paul

Parents
  • The fun sreally tarts when you have a function pointer that either returns a function pointer, or takes a function pointer as parameter, or - gasp - both.

    These declarations looks so horrible that most people chooses a multi-step declaration by by creating a separate type-def for the returned pointer and/or for the parameter pointer.

Reply
  • The fun sreally tarts when you have a function pointer that either returns a function pointer, or takes a function pointer as parameter, or - gasp - both.

    These declarations looks so horrible that most people chooses a multi-step declaration by by creating a separate type-def for the returned pointer and/or for the parameter pointer.

Children