What does “typedef void (*Something)()” mean

后端 未结 5 507
星月不相逢
星月不相逢 2020-12-02 14:38

I am trying to understand what this means, the code I am looking at has

in .h

typedef void (*MCB)();
static MCB     m_process;

in .

5条回答
  •  情书的邮戳
    2020-12-02 15:09

    It introduces a function pointer type, pointing to a function returning nothing (void), not taking any parameters and naming the new type MCB.

提交回复
热议问题