How to understand this define

前端 未结 6 2462
-上瘾入骨i
-上瘾入骨i 2021-02-19 23:19

Nowadays , i was reading the APUE.and i found the function defined as below:

void (*signal(int signo, void (*func)(int)))(int);

i was confused,

6条回答
  •  别那么骄傲
    2021-02-19 23:44

    In case you don't have access to cdecl right now, here is the cdecl output:

    $ cdecl
    cdecl> explain void (*signal(int , void (*)(int)))(int);
    declare signal as function (int, pointer to function (int) returning void) returning pointer to function (int) returning void
    

提交回复
热议问题