Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!shadooby!umich!dip.eecs.umich.edu!bagchi From: bagchi@dip.eecs.umich.edu (Ranjan Bagchi) Newsgroups: comp.lang.c Subject: Variable Parameters Message-ID: <1169@zip.eecs.umich.edu> Date: 30 Dec 89 22:05:54 GMT Sender: news@zippy.eecs.umich.edu Reply-To: bagchi@dip.eecs.umich.edu (Ranjan Bagchi) Organization: University of Michigan EECS Dept., Ann Arbor, MI Lines: 21 I'm working, currently, on a project that involves a function that could take any number or arguments. I would like to pass it only those arguments, i.e. no "flags" at the end which tell the function to stop. I'm using ANSI C, and believe my options are either to pass the function an array, or to use the elipsis for unspecified. The problems with each is that (for the first), given the array I have no way of knowing the size of the array (do I?) given only the array. For the second, I have no idea how to use an elipsis. Any ideas? Thanks...rj bagchi.sparky.eecs.umich.edu (If I'm dealing with something trivial, E-mail, please) ZZ