Re: Function pointer prototype interpretation
- From: Bryan Donlan <bdonlan@xxxxxxxxx>
- Date: Tue, 30 Aug 2005 15:58:58 -0400
Alfonso Morra wrote:
> Hi all,
>
> I came accross this FP signature and it has me baffled.
>
> Can anyone explain this signature to me - i.e what are the input and
> output types ?
>
> void(*(*foo)(int))(int,void(*)(int))
>
> Thanks
cdecl> explain void(*(*foo)(int))(int,void(*)(int))
declare foo as pointer to function (int) returning pointer to function (int,
pointer to function (int) returning void) returning void
Source code for cdecl is available from
http://ftp.debian.org/debian/pool/main/c/cdecl/cdecl_2.5.orig.tar.gz
--
λz.λi.i(i((λn.λm.λz.λi.nz(λq.mqi))((λn.λz.λi.n(nzi)i)(λz.λi.i(((λn.λz.λi.n
(nzi)i)(λz.λi.i(iz)))zi)))((λn.λz.λi.n(nzi)i)(λz.λi.i(iz)))zi))
.
- References:
- Function pointer prototype interpretation
- From: Alfonso Morra
- Function pointer prototype interpretation
- Prev by Date: Re: low-level question
- Next by Date: Re: while (1) vs. for ( ;; )
- Previous by thread: Re: Function pointer prototype interpretation
- Next by thread: Re: Function pointer prototype interpretation
- Index(es):
Relevant Pages
|