>> char temp[newlen];
>>This isn't even valid 'C' - you can't declare arrays with variable >>length. To do this, you would need to call malloc.
>Not true, I have used this convention hundreds of times!
>Perhaps I have a "smart" compiler, Salem!
You have a compiler that will compile non-ANSI standard code.
This implementation is compiler dependant. Much like:
fflush( stdin );
Sure, some compilers let you do it. Some of them even have it
work right. However, it is not ANSI compatible. (Actually, if I
recall correctly, they're considering adding it to the standard.)
However, it is _not_ in the standard. As such, your code is not