Variable argument lists.

Joseph Nathan Hall jnh at ece-csc.UUCP
Wed May 11 08:05:18 AEST 1988


In article <14139 at brl-adm.ARPA> bates%falcon.dnet%fermat at 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 at 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 . . . . . . . . . . . 



More information about the Comp.lang.c mailing list