varargs vs. stdargs

Gregory N. Bond gnb at bby.oz
Tue Nov 14 10:38:00 AEST 1989


I'm-sure-this-has-been-hashed-to-death-before-but:

Is there some method of specifying varadic functions that is portable
to both old (varargs) and new (stdargs) implementations?  Is there an
ANSI prototype for old varargs functions?  Or do I have two prototyes
and two implementations surrounded by #if __STDC__?  (My varargs is
the SunOs 3.5 one, in case there are many versions...)

Greg.
--
Gregory Bond, Burdett Buckeridge & Young Ltd, Melbourne, Australia
Internet: gnb at melba.bby.oz.au    non-MX: gnb%melba.bby.oz at uunet.uu.net
Uucp: {uunet,pyramid,ubc-cs,ukc,mcvax,prlb2,nttlab...}!munnari!melba.bby.oz!gnb



More information about the Comp.std.c mailing list