Xref: utzoo comp.std.c:1112 comp.lang.c:18191 Path: 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 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