Newsgroups: comp.lang.c Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!cunixa.cc.columbia.edu!ta-dw30 From: ta-dw30@cunixa.cc.columbia.edu (David Worenklein) Subject: Variable number of arguments Message-ID: <1991May13.210257.20240@cunixf.cc.columbia.edu> Originator: ta-dw30@cunixa.cc.columbia.edu Sender: usenet@cunixf.cc.columbia.edu (The Network News) Nntp-Posting-Host: cunixa.cc.columbia.edu Reply-To: ta-dw30@cunixa.cc.columbia.edu Organization: Columbia University Date: Mon, 13 May 1991 21:02:57 GMT I know I can pull a variable number of arguments off of the stack using va_... but how do I know how many arguments are there? Is there any way to get the C compiler to push all the arguments and then push the number of (arguments, bytes, etc.) pushed? Thanks. PS I'm using Symantec Think C v4 so if it has some feature that ANSI doesn't... =============================================================================== David C Worenklein | No one could tell me where my soul might be; Columbia College '93 | I searched for God, but he eluded me; in the City of New York | I sought my brother out, and found all three. -Crosby