Article View: comp.std.c
Article #498Question about function pointers & prototypes
From: Rick Coates
Date: Fri, 25 Aug 1989 21:19
Date: Fri, 25 Aug 1989 21:19
18 lines
1052 bytes
1052 bytes
I was using my more-or-less ANSI C compiler (Microsoft C for the PC), and ran across a question about function prototyping: I am using an array of pointers to functions to access procedures. My compiler complains about lacking a function prototype. Since the procedures take from none to four differing parameters, how do I declare it? Just as if it has variable arguments? I'd have to look up how one declares no or more arguments... How about returns? Can I have some void, and some return an int? Sorry if is this is too elementary for this newsgroup... I was just wondering. Rick Coates ...!tektronix!reed!percival!agora!rickc
Technical Details
Message-ID:
<1611@agora.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!psueea!parsely!agora!rickcShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!tektronix!psueea!parsely!agora!rickc From: rickc@agora.UUCP (Rick Coates) Newsgroups: comp.std.c Subject: Question about function pointers & prototypes Message-ID: <1611@agora.UUCP> Date: 25 Aug 89 21:19:18 GMT Organization: Advanced Solutions, Hillsboro, OR Lines: 18