TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jasen Betts
from: Roy J. Tellason
date: 2004-05-06 12:06:16
subject: Function Pointer Redux

Jasen Betts wrote in a message to Roy J. Tellason:

 JB> Hi Roy.

 JB> 03-May-04 20:06:34, Roy J. Tellason wrote to Bill Birrell


 RJT> Bill Birrell wrote in a message to Neil Heller:

  >> Given the following line of code:

  >> typedef void * (*x) (void *)

  >> What does this statement declare?

  >> What is x?

 BB>> Hi Neil,

 BB>> There is a little utility called cdecl.exe that allegedly answers
 BB>> precisely this type of question. It reports that one as a syntax
 BB>> error.

 BB>> Do you want a copy?

 RJT> Is the source available?   :-)

 JB> It's public domain as far as I can tell.  there's source out there
 JB> (it originated in usenet:comp.lang.c), but there was a binary on
 JB> disk 3 of my debian set (so I stopped looking), judging from the
 JB> README file you'll need lex (or flex) and yacc (or bison), (and of
 JB> course a C compiler) to compile the source, so if you want it for a
 JB> dos/windows
 JB> machine it may be easier to just download a binary.
 JB> (www.delorie.org has been a good starting point for locating dos
 JB> ports of that sort of stuff)

Actually I wasn't thinking of dos (where an .exe wouldn't be a problem for
the most part).

 JB> slightly modified source is at sunsite.unc.edu in
 JB> /pub/Linux/devel/lang/c

Probably a better bet.  :-)

 JB> Not having seen the source only having run the binary it's the sort
 JB> of thing I'd expect to be easily portable.

Sounds like it.

--- 
* Origin: TANSTAAFL BBS 717-838-8539 (1:270/615)
SEEN-BY: 633/267 270
@PATH: 270/615 150/220 3613/1275 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.