On Thu, Feb 24, 2011 at 10:55 PM, Ryan Leavengood <leavengood@xxxxxxxxx>wrote: > It's C code, the variables have to be declared at the top of a block, > as you fixed it. Korli may not have tried to compile it, or he used > GCC4 which maybe is more lenient. > In C99 this is no longer true. You can declare variables anywhere in a block just like in C++. Obviously gcc2 doesn't implement C99 fully whereas gcc4 does. http://en.wikipedia.org/wiki/C99 John Scipione