prototypes, NULL, and magic
Wayne Throop
throopw at sheol.UUCP
Tue Apr 2 10:31:05 AEST 1991
- gwyn at smoke.brl.mil (Doug Gwyn)
-- throopw at sheol.UUCP (Wayne Throop)
-- ... I am moved to ask: what about the execl(2) family of functions, ...
- These are specified in IEEE Std 1003.1. Yes, in general they might not
- work right if invoked without a prototype in scope.
While this is perfectly good information, it doesn't adequately address
the question I originally asked, for three reasons:
- I was asking about the situation WITH a prototype in scope
- I was asking about a specific environment, as well as in in general
(perhaps this means I should have asked elsewhere, but my question
was relevant to a general discussion that occured on comp.lang.c)
- I was asking about the BSD 4.mumble implementation Chris Torek
referenced, not about any relevant standards.
So, specifically: under the upcoming BSD release, with prototypes in
scope, is it really safe to use unadorned NULL to terminate a
variable argument list a-la execl(2) family as Chris seemed to
imply (but did not explicitly state)? Or did I misunderstand?
More generally, with prototypes in scope, are there any but the default
promotions which occur for arguments referenced by the "..." argument
specifier?
--
Wayne Throop ...!mcnc!dg-rtp!sheol!throopw
More information about the Comp.lang.c
mailing list