Prototypes (variable # of arguments)
der Mouse
mouse at mcgill-vision.UUCP
Wed May 10 19:35:54 AEST 1989
In article <12864 at haddock.ima.isc.com>, karl at haddock.ima.isc.com (Karl Heuer) writes:
> In article <2775 at cps3xx.UUCP> rang at cpswh.cps.msu.edu (Anton Rang) writes:
>> I'm trying to do a prototype for BSD's "open"
>> extern int open(char *, int, ...);
> The prototype you gave is the best possible under the circumstances.
> (Except that the first arg should be declared with "const".)
Every BSD manpage for three-argument open() I've seen doesn't show the
third argument as optional. (BSD not to be confused with, for example,
Sun, which does show the third argument as optional.) You'll normally
get away with omitting it (when not including O_CREAT), but that
doesn't make it optional.
Or is it supposed to be optional and the manpage is wrong?
der Mouse
old: mcgill-vision!mouse
new: mouse at larry.mcrcim.mcgill.edu
More information about the Comp.std.c
mailing list