Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | jononanon@googlemail.com |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: va_arg... recursion: changing arguments and the using recursion |
| Date | 2012-04-25 11:16 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <32484621.133.1335377788788.JavaMail.geo-discussion-forums@vbkv21> (permalink) |
| References | <6923270.398.1335376959698.JavaMail.geo-discussion-forums@vbcg6> |
C99 draft standard comes to the rescue. http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf On pdf-page 263 there is an example where the variable arguments are gathered in an array and then another function f2 is invoked with this array (and the number of array-elements). So the way to hande it is: set up the array, and then call f2, and do the recursion on f2 (which has a fixed amount of arguments).
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
va_arg... recursion: changing arguments and the using recursion jononanon@googlemail.com - 2012-04-25 11:02 -0700
Re: va_arg... recursion: changing arguments and the using recursion jononanon@googlemail.com - 2012-04-25 11:16 -0700
Re: va_arg... recursion: changing arguments and the using recursion James Kuyper <jameskuyper@verizon.net> - 2012-04-26 14:08 -0400
Re: va_arg... recursion: changing arguments and the using recursion jononanon@googlemail.com - 2012-04-26 12:44 -0700
Re: va_arg... recursion: changing arguments and the using recursion John Reye <jononanon@googlemail.com> - 2012-04-26 13:02 -0700
Re: va_arg... recursion: changing arguments and the using recursion John Reye <jononanon@googlemail.com> - 2012-04-26 13:13 -0700
Re: va_arg... recursion: changing arguments and the using recursion James Kuyper <jameskuyper@verizon.net> - 2012-04-26 16:28 -0400
Re: va_arg... recursion: changing arguments and the using recursion James Kuyper <jameskuyper@verizon.net> - 2012-04-26 16:34 -0400
Re: va_arg... recursion: changing arguments and the using recursion John Reye <jononanon@googlemail.com> - 2012-04-26 13:37 -0700
csiph-web