Xref: utzoo comp.unix.wizards:16589 comp.lang.c:19114 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards,comp.lang.c Subject: Re: Needed: A (Portable) way of setting up the arg stack Keywords: varargs Message-ID: <10354@smoke.BRL.MIL> Date: 2 Jun 89 16:58:13 GMT References: <708@mitisft.Convergent.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <708@mitisft.Convergent.COM> kemnitz@mitisft.Convergent.COM (Gregory Kemnitz) writes: >I need to know how (or if) *NIX (System V.3) has the ability to let >a stack of arguments be set for a function before it is called. I >have several hundred pointers to functions which are called from one >place, and each function has different numbers of arguments. Let's assume for the sake of simplicity that all the arguments have the same type. Then your best bet is to define all the functions to take a pointer to (an array of) arguments. That way they're all conformable.