Re: Behavior of ifstream::read() in g++

2006-10-15 Thread Danny Smith
Alex Vinokur Sunday, 15 October 2006 5:10 p.m. > This program has different behavior in > * g++ 3.4.4 (Cygwin) > * gpp 4.0.1 *Djgpp) > * Microsoft C++ 13.00.9466 > > --- foo.cpp -- > #include > #include > #include > using namespace std; > > #define BUFFER_SIZE 1500 > #define INPUT_FI

Behavior of ifstream::read() in g++

2006-10-14 Thread Alex Vinokur
This program has different behavior in * g++ 3.4.4 (Cygwin) * gpp 4.0.1 *Djgpp) * Microsoft C++ 13.00.9466 --- foo.cpp -- #include #include #include using namespace std; #define BUFFER_SIZE 1500 #define INPUT_FILE_NAME "in.txt" void foo () { char cbuffer[BUFFER_SIZE]; ifstream fs (I