delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/18/12:26:15

Date: Fri, 18 Jul 1997 09:20:21 -0700 (PDT)
Message-Id: <199707181620.JAA02345@adit.ap.net>
Mime-Version: 1.0
To: billc AT blackmagic DOT tait DOT co DOT nz
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Array of Functions
Cc: djgpp AT delorie DOT com

There exists a Unix program called `cdecl' which translates such
declarations between English and C. One place you can find the source by ftp
is at
sunsite.unc.edu in /pub/Linux/devel/lang/c/cdecl-2.5.tar.gz
The version number may have changed. It should be possible to port this, if
anyone wants to. If you have a Unix box, you can run it there.

>This stuff is both C and C++, but no I don't know of ANY tutorials on
>the web (try the C and C++ faq's, they may have some answers).
>
>For this topic:
>[deleted]
> (*a[])() array of pointers to functions
>
>so eg:
>
>int (*(*a[])(char *))(void *);
>
>a is an array of pointers to functions taking `char *' and returning a
>pointer to a functions that takes `void *' and returns `int'.
>
>Blah
>Bill
>-- 

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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