Prototypes (variable # of arguments)

Anton Rang rang at cpsin3.cps.msu.edu
Sat Apr 29 05:33:28 AEST 1989


Is it possible to declare a prototype with an "optional" final
argument?  I'm trying to do a prototype for BSD's "open", which takes
either 2 or 3 arguments.  At the moment, I have:

	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)?

+---------------------------+------------------------+-------------------+
| Anton Rang (grad student) | "VMS Forever!"         | VOTE on	         |
| Michigan State University | rang at cpswh.cps.msu.edu | rec.music.newage! |
+---------------------------+------------------------+-------------------+
| Send votes for/against rec.music.newage to "rang at cpswh.cps.msu.edu".   |
+---------------------------+------------------------+-------------------+



More information about the Comp.lang.c mailing list