open() prototype
Shankar Unni
shankar at hpclscu.HP.COM
Sun May 14 10:51:42 AEST 1989
> The best interpretation is that open() really is a variadic-argument
> function, that the third argument is required for O_CREAT and may be
> present but is ignored otherwise, and that <fcntl.h> must be included
> in applications to obtain the appropriate function declaration.
What would have been really useful is some way to "default" the value
of an argument:
int open (char *, int, int = 0777);
(a' la' C++).
---
Shankar.
More information about the Comp.std.c
mailing list