Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!harpo!utah-cs!utah-gr!thomas From: thomas@utah-gr.UUCP (Spencer W. Thomas) Newsgroups: net.lang.c Subject: Re: var args - (nf) Message-ID: <968@utah-gr.UUCP> Date: Mon, 31-Oct-83 12:04:38 EST Article-I.D.: utah-gr.968 Posted: Mon Oct 31 12:04:38 1983 Date-Received: Fri, 4-Nov-83 02:37:03 EST References: mordor.134 Lines: 10 Re: S-1 upward growing stack. (Of course, this depends on your hardware cooperating.) The way I would solve the problem would be to have the frame pointer point to the first argument (or, perhaps, to the word above the first argument), so that args would be at (constant) negative offsets form the frame pointer, and local vars would be at positive offsets. Then you don't have a problem with getting the wrong arg when called with the wrong number of them. =Spencer