Subject: Re: C Language Standard(s)
To: matthew green <mrg@mame.mu.OZ.AU>
From: Simon J. Gerraty <sjg@frodo.dn.itg.telecom.com.au>
List: current-users
Date: 12/21/1995 18:29:44
> void
> #ifdef __STDC__
> foo(char bar, short baz)
> #else
> foo(bar, gaz);
> 	char bar;
> 	short baz;
> #endif
> {
> 	...
> }

Ummm, unless my memory fails me - it is late in the year, the above is
not a good idea.

Whether you like it or not, baz will be promoted to int by a K&R
compilet, so you would be far better off simply doing:

foo(bar, baz)
	char bar;
	int baz;
{
	short what_i_want = baz;

then all compilers will do the right thing and your code will work as
you expected.  

--sjg