> From: Mathew Hendry 
> 
> <varargs.h> is pre-ANSI and non-standard - use <stdarg.h> for 
> the standard stuff. Should be
> 
>   va_start(ap)

Oops! I mean

  va_start(ap, lastarg)

where ap is your va_list and lastarg is the last non-variadic parameter.

>   va_arg(ap, type)

And not forgetting

  va_end(ap)

although on most systems it doesn't do much. Best to be compliant if
possible, though...

-- Mat.
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to