Matthew Dalton wrote:

> This is how you pass a variable number of arguments to a function
> (actually, there is a line missing 'va_end(arglist);' which should be
> after the vfprintf call). The variable list is represented in the
> function prototype by the '...'.
>

GNU C does not have such restrictions. You can safely continue to fetch
arguments from a va_list pointer after
passing it to vprintf, and va_end is a no-op. (Note, however, that
subsequent va_arg calls will fetch the same
arguments which vprintf previously used.)


--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to