Article View: comp.std.c
Article #5953Re: Prototypes (variable # of arguments)
From: Karl Heuer
Date: Sun, 30 Apr 1989 00:52
Date: Sun, 30 Apr 1989 00:52
13 lines
1001 bytes
1001 bytes
In article <2775@cps3xx.UUCP> rang@cpswh.cps.msu.edu (Anton Rang) writes: >I'm trying to do a prototype for BSD's "open" BSD? I thought AT&T was to blame for that mistake. > extern int open(char *, int, ...); >Is there any way to limit this to only take 2 or 3 arguments (as >opposed to 2 or more)? No. The prototype you gave is the best possible under the circumstances. (Except that the first arg should be declared with "const".) Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
Technical Details
Message-ID:
<12864@haddock.ima.isc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!mit-eddie!genrad!decvax!ima!haddock!karlReferences:
<2775@cps3xx.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!mit-eddie!genrad!decvax!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.std.c,comp.lang.c Subject: Re: Prototypes (variable # of arguments) Message-ID: <12864@haddock.ima.isc.com> Date: 30 Apr 89 00:52:50 GMT References: <2775@cps3xx.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Followup-To: comp.std.c Organization: Interactive Systems, Boston Lines: 13