> There is a strange bug I was find at the egcs. Thanks for your bug report. Unfortunately, I could not reproduce it with egcs 1.1.2, Linux 2.2.5, and glibc 2.1.2. Perhaps it is not a bug in the C++ compiler, but in the C library? Also, I doubt that you are allowed call ungetc with no prior read operation. Regards, Martin