Path: utzoo!mnetor!uunet!husc6!bbn!gatech!mcnc!ece-csc!jnh
From: jnh@ece-csc.UUCP (Joseph Nathan Hall)
Newsgroups: comp.lang.c
Subject: Re: Variable argument lists.
Message-ID: <3569@ece-csc.UUCP>
Date: 10 May 88 22:05:18 GMT
References: <14139@brl-adm.ARPA>
Reply-To: jnh@ece-csc.UUCP (Joseph Nathan Hall)
Organization: North Carolina State University, Raleigh, NC
Lines: 17

In article <14139@brl-adm.ARPA> bates%falcon.dnet%fermat@bru.mayo.edu (Cary Bates) writes:
>
>       Does anybody know (or care) why in ANSI standard C when 
>       using a variable length argument list, there is no way to 
>       determine how many arguments where passed into the function?

That's because in theory one of the "fixed" arguments in your function's
argument list should indicate, either directly with a count, or indirectly
(like printf), how many arguments follow in the variable-length portion
of the argument list.


-- 
v   v sssss|| joseph hall                      || 201-1D Hampton Lee Court
 v v s   s || jnh@ece-csc.ncsu.edu (Internet)  || Cary, NC  27511
  v   sss  || the opinions expressed herein are not necessarily those of my
-----------|| employer, north carolina state university . . . . . . . . . . .