Article View: comp.std.c
Article #44Re: Declaration/Assignment of Array of function pointers
From: Fran Litterio
Date: Fri, 30 Oct 1992 17:59
Date: Fri, 30 Oct 1992 17:59
14 lines
1066 bytes
1066 bytes
ender@eskimo.celestial.com (Paul Bohme) writes:
> Exactly how does one go about filling in an array of function pointers
> upon declaration?
> I want to do this:
> char fooski[] = { 'a', 'b', 'c'};
> But with pointers to functions instead of chars. Is that possible?
extern int a(), b(), c(), d();
int (*array[])() = { a, b, c, d };
--
franl@centerline.com || Fran Litterio, CenterLine Software R&D
617-498-3255 || 10 Fawcett St, Cambridge, MA, USA 02138-1110
"It's not the thing you fling, it's the fling itself." -- Chris Stevens
Technical Details
Message-ID:
<FRANL.92Oct30175902@draco.centerline.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.centerline.com!franlReferences:
<1992Oct30.082739.28456@eskimo.celestial.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!news.centerline.com!franl From: franl@centerline.com (Fran Litterio) Newsgroups: comp.std.c Subject: Re: Declaration/Assignment of Array of function pointers Date: 30 Oct 92 17:59:02 Organization: CenterLine Software, Inc. Lines: 14 Message-ID: <FRANL.92Oct30175902@draco.centerline.com> References: <1992Oct30.082739.28456@eskimo.celestial.com> NNTP-Posting-Host: 140.239.3.116 In-reply-to: ender@eskimo.celestial.com's message of Fri, 30 Oct 1992 08:27:39 GMT