Mail Archives: djgpp/1996/05/08/23:58:31
On Wed, 8 May 1996 kagel AT quasar DOT bloomberg DOT com wrote:
> void abc(int anzahl, unsigned char abc, ...)
> {
> va_list ap;
> va_start(ap, abc);
> fg = va_arg(ap, unsigned char);
>
>
> The problem is that when you call a variable argument function the arguments
> beyond the list of predefined arguments are all promoted (char and short to
> int, float to double) so you cannot get an unsigned char here. What you are
In addition to all that's been said on this thread by Art and others, the
above is explicitly forbidden by ANSI C.
- Raw text -