Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site cwruecmp.UUCP Path: utzoo!linus!security!genrad!decvax!cwruecmp!decot From: decot@cwruecmp.UUCP (Dave Decot) Newsgroups: net.lang.c Subject: Re: Var args: a warning Message-ID: <765@cwruecmp.UUCP> Date: Wed, 2-Nov-83 04:34:26 EST Article-I.D.: cwruecmp.765 Posted: Wed Nov 2 04:34:26 1983 Date-Received: Sun, 6-Nov-83 03:22:01 EST References: <1547@tektronix.UUCP> Organization: CWRU Computer Engr. Cleveland, Ohio Lines: 11 I have used the method described (passing lots of int parameters) on both a PDP/11-45 and a PDP/11-70 with success. Since a long parameter takes stack space for two ints on these machines, one might think one could encounter problems. But since the "code" I have advocated calls {f,}printf() with the same size parameters as err() thinks it has, those parameters are stacked just as they were by the function that called err(). As long as your machine consistently stacks parameters, the fragment in question will operate correctly. Dave Decot decvax!cwruecmp!decot