delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/07/20:05:30

Sender: nate AT cartsys DOT com
Message-ID: <3783E6B5.5EEB6E19@cartsys.com>
Date: Wed, 07 Jul 1999 16:45:57 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.10 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: can anybody help me regarding this
References: <7lrv0j$hmm$1 AT news DOT vsnl DOT net DOT in>
Reply-To: djgpp AT delorie DOT com

Anand Singh Bisen wrote:
> 
> Hello
> 
>       i have encountered this in some place and am not able to understand
> this statement :
> 
> void (*f(int , char ))(float);
> 
> can somebody please help me out.
> 
> this is correct believe me and it also works but am not able understand

Someone has already posted the explanation.  I'd just like to point out
that for the future, there is an automatic tool to decode this sort of
thing.  It's called cdecl and you can get it as cdecl25b.zip in v2apps
at Simtelnet.

You'd see this:

cdecl> explain void (*f(int , char ))(float);
declare f as function (int, char) returning pointer to function (float)
returning void

which is very similar to what the other poster said.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019